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
My use case is that I have an existing STS which does not have "managed-by: Helm" label. Now, changing it and updating it via helm results in this label being added, which is not allowed since Sets are immutable (see kubernetes/kubernetes#90519).
Is there any way to prevent Helm from adding this label?
I suppose it could be done with post-processing by something like kustomize, though I'd like not to generate the label in the first place instead of generating and then removing it.
Note: running "helm template" does not result in this label being present in the generated yaml, but running "helm apply" afterwards results in actual k8s STS having it.
The text was updated successfully, but these errors were encountered:
Hi. I'm not entirely sure what you're doing. For example, you bring up the helm apply command. Helm does not have an apply command.
The labels are part of the charts (the packages). Helm does not inject any labels. You will need to look at the chart you are working with to find how the label is handled.
Apologies, helm install. I got it confused with helmfile I guess.
As to your second sentence, there is this comment from the same repo: #8083 (comment)
Since Helm 3.2.0 (via #7649), we now automatically add two annotations in meta.helm.sh/ and a label app.kubernetes.io/managed-by: Helm.
This label is the exact one I'd like not to have since adding it to STS is not supported by k8s as of now and deleting the STS is an option with downtime, sadly.
Hi,
My use case is that I have an existing STS which does not have "managed-by: Helm" label. Now, changing it and updating it via helm results in this label being added, which is not allowed since Sets are immutable (see kubernetes/kubernetes#90519).
Is there any way to prevent Helm from adding this label?
I suppose it could be done with post-processing by something like kustomize, though I'd like not to generate the label in the first place instead of generating and then removing it.
Note: running "helm template" does not result in this label being present in the generated yaml, but running "helm apply" afterwards results in actual k8s STS having it.
The text was updated successfully, but these errors were encountered: