You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Apply helm hook and release labels to hook resources #6365
A solution for imperatively deleting hook resources is needed that does not involve re-executing the hook (a la the Helm 2test --cleanup flag). This will allow us to implement a generic cleanup subcommand that simply selects resources to delete by hook and release label, and works across resources created by multiple revisions of a chart.
After further review of this proposal, it looks like it won't break backwards compatibility if we implemented this in a future Helm 3 release. Certain hooks just won't have the required annotations out of the gate, which can be worked around.
Is there a particular reason this has to get in before 3.0 is released, or can we remove the milestone and it can be implemented when the need arises? Basically I'm trying to determine if we need to hold off on releasing 3.0 until someone gets to this or not. Thanks!
If we want to use app.kubernetes.io/instance: "[RELEASE NAME]" then this would be a breaking change for any charts that currently set app.kubernetes.io/instance to something other than the recommended value. If we're okay making that change after 3.0, or would prefer to use a different (helm.sh scoped) label, then we can wait.
It's probably safe to add hooks.helm.sh/pre-install any time since these are helm.sh scoped, though this is also technically a breaking change.
I am more in favor of helm.sh scoped labels, but I don't see how that would be breaking since it would just be a behavior add. Am I missing something @jlegrone?
I am more in favor of helm.sh scoped labels, but I don't see how that would be breaking since it would just be a behavior add.
We would need to error out if the chart itself adds these labels with a different value, which IMO is a breaking change. It's unlikely to happen when using helm.sh scoped labels, but app.kubernetes.io/instance may be more widely used by existing charts.
I would consider that very unlikely if we are using helm.sh scoped labels because scoped labels are supposed to be used by specific applications, so if you are using them for some reason, that is the chart author's responsibility, so I honestly think it would be a safe add afterwards. @bacongobbler any thoughts?
app.kubernetes.io/instance is a kind of common interface for passing around this information. Other tools can use it.
app.kubernetes.io/instance is something that "can be" changed in the chart. It is not something we enforce being the release name nor do we have linting for that. This makes me not want to start enforcing it right before an RC. We don't know what a breaking change like this might do. People use helm in production which makes me conservative about changes like this.
If we are using this for internal automation I would be much more in favor or a new helm.sh namespaced label. It seems to be the safer route at this point.
Note, I'm not suggesting this is the "best" approach. Rather, I would like to be conservative and safe this late in the development cycle.
Hey @jlegrone and @mattfarina. Is there any update on this ticket? If so, is it okay if we remove this from the 3.1 milestone? I haven't heard any movement on this ticket since late October.
Haven't seen any movement since this was first brought up in September. Removing from the milestone. Let us know when you're ready to implement this and we can re-target the next milestone
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
Activity
bacongobbler commentedon Oct 28, 2019
After further review of this proposal, it looks like it won't break backwards compatibility if we implemented this in a future Helm 3 release. Certain hooks just won't have the required annotations out of the gate, which can be worked around.
Is there a particular reason this has to get in before 3.0 is released, or can we remove the milestone and it can be implemented when the need arises? Basically I'm trying to determine if we need to hold off on releasing 3.0 until someone gets to this or not. Thanks!
jlegrone commentedon Oct 28, 2019
If we want to use
app.kubernetes.io/instance: "[RELEASE NAME]"then this would be a breaking change for any charts that currently setapp.kubernetes.io/instanceto something other than the recommended value. If we're okay making that change after 3.0, or would prefer to use a different (helm.shscoped) label, then we can wait.It's probably safe to add
hooks.helm.sh/pre-installany time since these arehelm.shscoped, though this is also technically a breaking change.thomastaylor312 commentedon Oct 28, 2019
I am more in favor of
helm.shscoped labels, but I don't see how that would be breaking since it would just be a behavior add. Am I missing something @jlegrone?jlegrone commentedon Oct 28, 2019
We would need to error out if the chart itself adds these labels with a different value, which IMO is a breaking change. It's unlikely to happen when using
helm.shscoped labels, butapp.kubernetes.io/instancemay be more widely used by existing charts.thomastaylor312 commentedon Oct 28, 2019
I would consider that very unlikely if we are using helm.sh scoped labels because scoped labels are supposed to be used by specific applications, so if you are using them for some reason, that is the chart author's responsibility, so I honestly think it would be a safe add afterwards. @bacongobbler any thoughts?
jlegrone commentedon Oct 28, 2019
Right, I think the main question is whether we feel comfortable requiring
app.kubernetes.io/instanceto be set to a specific value in v3.1+.mattfarina commentedon Oct 28, 2019
app.kubernetes.io/instanceis a kind of common interface for passing around this information. Other tools can use it.app.kubernetes.io/instanceis something that "can be" changed in the chart. It is not something we enforce being the release name nor do we have linting for that. This makes me not want to start enforcing it right before an RC. We don't know what a breaking change like this might do. People use helm in production which makes me conservative about changes like this.If we are using this for internal automation I would be much more in favor or a new
helm.shnamespaced label. It seems to be the safer route at this point.Note, I'm not suggesting this is the "best" approach. Rather, I would like to be conservative and safe this late in the development cycle.
mattfarina commentedon Oct 29, 2019
I moved this to the 3.1.0 milestone. We can implement this in a backwards compatible manner.
We are about ready to cut the first 3.0.0 RC and have a timetable for the final release.
bacongobbler commentedon Jan 27, 2020
Hey @jlegrone and @mattfarina. Is there any update on this ticket? If so, is it okay if we remove this from the 3.1 milestone? I haven't heard any movement on this ticket since late October.
bacongobbler commentedon Jan 30, 2020
punting to 3.2.
bacongobbler commentedon Jun 24, 2020
Haven't seen any movement since this was first brought up in September. Removing from the milestone. Let us know when you're ready to implement this and we can re-target the next milestone
bacongobbler commentedon Jun 24, 2020
github-actions commentedon Nov 20, 2020
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.