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
Please describe your use case / problem.
Interception not working with namespace-scoped traffic manager installation with default labels of namespace even with k8s version > 1.21 because the mutating webhook use app.kubernetes.io/name label for namespaces scoping which is not added by default to namespaces by k8s controller
Describe the solution you'd like
I would recommend replacing app.kubernetes.io/name with kubernetes.io/metadata.name because according to the K8s documentation app.kubernetes.io/name is used for workload resources and namespace is not part of workload resources, and kubernetes.io/metadata.name is set by the K8s API on all namespaces and can't be changed and can be used for targeting namespace
The text was updated successfully, but these errors were encountered:
HatchBV
changed the title
Replacing app.kubernetes.io/name with kubernetes.io/metadata.name
Replacing app.kubernetes.io/name with kubernetes.io/metadata.name in mutatingwebhook
Dec 1, 2022
The `kubernetes.io/metadata.name` is always set in Kubernetes versions
1.21 and higher. This commit ensures that it is used in favor of
`app.kubernetes.io/name` on such versions.
Closes#2913
Signed-off-by: Thomas Hallgren <thomas@datawire.io>
The `kubernetes.io/metadata.name` is always set in Kubernetes versions
1.21 and higher. This commit ensures that it is used in favor of
`app.kubernetes.io/name` on such versions.
Closes#2913
Signed-off-by: Thomas Hallgren <thomas@datawire.io>
Please describe your use case / problem.
Interception not working with namespace-scoped traffic manager installation with default labels of namespace even with k8s version > 1.21 because the mutating webhook use
app.kubernetes.io/name
label for namespaces scoping which is not added by default to namespaces by k8s controllerDescribe the solution you'd like
I would recommend replacing
app.kubernetes.io/name
withkubernetes.io/metadata.name
because according to the K8s documentationapp.kubernetes.io/name
is used for workload resources and namespace is not part of workload resources, andkubernetes.io/metadata.name
is set by the K8s API on all namespaces and can't be changed and can be used for targeting namespaceThe text was updated successfully, but these errors were encountered: