Labels added to namespace not being deployed #3655
-
Hello, I previously used Flux to deploy a namespace into my cluster. I now wanted to add a new label of My code (stored under cluster/production/namespaces) looks like this:
Doing a
I have also tried doing:
But this doesn't seem to change the outcome. Any help would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
If you do |
Beta Was this translation helpful? Give feedback.
-
I have the same issue, with the same label! The namespace is managed by Flux, and it doesn't set the labels to the namespace. Whats worse, if I set them manually, Flux removes them after a reconcile. Kustomize controller version: |
Beta Was this translation helpful? Give feedback.
-
Same issue and same scenario with my |
Beta Was this translation helpful? Give feedback.
-
You need to add make the value a string e.g. apiVersion: v1
kind: Namespace
metadata:
name: traefik
labels:
goldilocks.fairwinds.com/enabled: "true" |
Beta Was this translation helpful? Give feedback.
You need to add make the value a string e.g.
"true"
, otherwise the value of the label is of type boolean and the Kubernetes API drops it as being invalid.