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
helm does not support objects with metadata.generateName #3348
Comments
Deleting the release also fails:
|
labeling as half bug, half feature request. |
+1, I think the bug is that this should fail with a clearer error explicitly, rather than producing resources that are lost tack of. Feature would be if it supported generateName based objects properly :) |
- Allow overriding the pause image used, for cases when external docker images are disallowed - Explicitly set the name of the created daemonset, since helm does not support using generateName helm/helm#3348 - Set proper labels on the daemonsets
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Any activity on this? Or any advice how to deal with Jobs that I need to run during upgrade? |
@puco what I did was use {{ .Release.Revision }} on top of the job name. The extra nice part is that it also helps identify which revision on first glance that a migration belongs to. |
the same issue affects |
closing as inactive. |
Is someone looked at this issue and solved it? This has been a problem while using the |
|
@bacongobbler I am not sure this is inactive |
Alternate workaround: metadata:
name: job-foo-{{ randAlphaNum 8 | lower }} |
In kubernetes objects, if you set
metadata.generateName
rather thanmetadata.name
, k8s will generate a unique name for you, and you can figure out the name from the full object returned from the initial create call. I'd expect this to work with helm, but helm does not seem to support this.To reproduce, create a chart with the following template:
If you install this, you'll get:
Note that helm considers the deployment to be missing, even though kubectl tells you that the deployment was indeed created. If you try to upgrade this release,
And the deployment object is then sort of 'lost' forever, untracked.
Ideally, helm would use the response from the original create call to figure out the name of the object to track and track that...
The text was updated successfully, but these errors were encountered: