-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[bitnami/common] _affinities namespace #12668
Comments
Thanks a lot for sharing your concerns. Sorry but I don't fully understand this:
If the chart is released in a particular namespace ( |
As I stated before, I am using the helm chart with kustomize. The flag you mention should be handed to helm binary here In kustomize there is namespace transformer that can override the namespace in lower layers of kustomize hierarchy. Unfortunately the kustomize can not modify helm parameteters specified in helmchart generator and patching the final resource is very troublesome here. I doubt it will be resolved quickly in kustomize (see long term helm support issue). From my description in this issue, the current behavior of AffinityTerm is indentical as if |
OK, I got it. Could you open a PR linking this issue? I think that's the best option to include the changes, our capacity is limited and we couldn't give you an ETA. |
the current context namespace defined is identical as not defined at all > null or empty namespaces list and null namespaceSelector means "this pod's namespace" docs: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#podaffinityterm-v1-core issue: bitnami#12668
the current context namespace defined is identical as not defined at all > null or empty namespaces list and null namespaceSelector means "this pod's namespace" docs: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#podaffinityterm-v1-core issue: bitnami#12668
the current context namespace defined is identical as not defined at all > null or empty namespaces list and null namespaceSelector means "this pod's namespace" docs: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#podaffinityterm-v1-core issue: bitnami#12668 Signed-off-by: Petr Studeny <[email protected]>
Hi. I was ill. I pushed the PR I hope I will handle all the bureaucracy. |
Thanks a lot Petr! We will come back soon with the review |
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
#12932) the current context namespace defined is identical as not defined at all > null or empty namespaces list and null namespaceSelector means "this pod's namespace" docs: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#podaffinityterm-v1-core issue: #12668 Signed-off-by: Petr Studeny <[email protected]> Signed-off-by: Petr Studeny <[email protected]> Signed-off-by: Carlos Rodríguez Hernández <[email protected]> Co-authored-by: Carlos Rodríguez Hernández <[email protected]>
bitnami#12932) the current context namespace defined is identical as not defined at all > null or empty namespaces list and null namespaceSelector means "this pod's namespace" docs: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#podaffinityterm-v1-core issue: bitnami#12668 Signed-off-by: Petr Studeny <[email protected]> Signed-off-by: Petr Studeny <[email protected]> Signed-off-by: Carlos Rodríguez Hernández <[email protected]> Co-authored-by: Carlos Rodríguez Hernández <[email protected]>
Name and Version
bitnami/common 1.16.0
What steps will reproduce the bug?
related to #10804
Hello. I struggle with the helmchart inside kustomize. The namespace transformer can't reach this value and change it accordingly.
Here is the question: Why even have the podAffinityTerm populated with namespaces list with this single value? It seems to me this setup has the same effect as not defined at all.
Are you using any custom parameters or values?
No response
What is the expected behavior?
The podAffinityTerm applies to namespace of redis deployment as in case where namespace is not specified in the podAffinityTerm docs.
What do you see instead?
If the resource is created for different kubectl context than the current. The current namespace is injected into
podAffinityTerm.namespaces
which does not correspond with the namespace of pod.Additional information
I suggest the template
https://github.com/bitnami/charts/blob/master/bitnami/common/templates/_affinities.tpl#L65
should not contain
The text was updated successfully, but these errors were encountered: