increase helm install timeout (#381)

This commit is contained in:
3u13r 2022-08-19 13:28:16 +02:00 committed by GitHub
parent 402fc7761b
commit 29a1b5de42
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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)