Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm3 Implementer timeout defaults to 300ns (0.3ms) #595

Open
bkconrad opened this issue Apr 2, 2021 · 0 comments
Open

Helm3 Implementer timeout defaults to 300ns (0.3ms) #595

bkconrad opened this issue Apr 2, 2021 · 0 comments

Comments

@bkconrad
Copy link

bkconrad commented Apr 2, 2021

While upgrading a helm3 deployment I was receiving timeout errors with a notification that the timeout was 300ns. This was triggered by a pre-upgrade hook Job resource. Since the job takes a few seconds to run it was causing the keel-managed helm upgrade to fail due to missing the timeout. Diving into the source I found this line:

https://github.com/keel-hq/keel/blob/master/provider/helm3/implementer.go#L22

This value gets implicitly cast into a time.Duration as that's the type of helm3's Upgrade.Duration field: https://pkg.go.dev/helm.sh/helm/v3/pkg/action#Upgrade

However, ints are taken to represent nanoseconds (apparently). Based on other comments in the code it seems like this value was intended to be five minutes.

keel chart version: 0.9.8
container image: keelhq/keel:0.17.0-rc1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant