mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-24 23:19:39 -05:00
increase helm install timeout (#381)
This commit is contained in:
parent
402fc7761b
commit
29a1b5de42
@ -34,7 +34,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Removed
|
### Removed
|
||||||
<!-- For now removed features. -->
|
<!-- For now removed features. -->
|
||||||
### Fixed
|
### Fixed
|
||||||
<!-- For any bug fixes. -->
|
|
||||||
|
- Fix timeout issue during cilium installation.
|
||||||
### Security
|
### Security
|
||||||
<!-- In case of vulnerabilities. -->
|
<!-- In case of vulnerabilities. -->
|
||||||
### Internal
|
### Internal
|
||||||
|
@ -43,6 +43,8 @@ const (
|
|||||||
kubeletStartTimeout = 10 * time.Minute
|
kubeletStartTimeout = 10 * time.Minute
|
||||||
// crdTimeout is the maximum time given to the CRDs to be created.
|
// crdTimeout is the maximum time given to the CRDs to be created.
|
||||||
crdTimeout = 15 * time.Second
|
crdTimeout = 15 * time.Second
|
||||||
|
// helmTimeout is the maximum time given to the helm client.
|
||||||
|
helmTimeout = 5 * time.Minute
|
||||||
)
|
)
|
||||||
|
|
||||||
// Client provides the functions to talk to the k8s API.
|
// Client provides the functions to talk to the k8s API.
|
||||||
@ -203,7 +205,7 @@ func (k *KubernetesUtil) SetupHelmDeployments(ctx context.Context, kubectl Clien
|
|||||||
helmClient.Namespace = constants.HelmNamespace
|
helmClient.Namespace = constants.HelmNamespace
|
||||||
helmClient.ReleaseName = "cilium"
|
helmClient.ReleaseName = "cilium"
|
||||||
helmClient.Wait = true
|
helmClient.Wait = true
|
||||||
helmClient.Timeout = 30 * time.Second
|
helmClient.Timeout = helmTimeout
|
||||||
|
|
||||||
if err := k.deployCilium(ctx, in, helmClient, helmDeploy.Cilium, kubectl); err != nil {
|
if err := k.deployCilium(ctx, in, helmClient, helmDeploy.Cilium, kubectl); err != nil {
|
||||||
return fmt.Errorf("deploying cilium: %w", err)
|
return fmt.Errorf("deploying cilium: %w", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user