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
I am trying to configure the operator for my deployment.
However, part of my application logic also needs to set the value of a label of my pods on-the-fly, and this seems to be blocked on the pods where the flagd container is injected by the webhook.
The below bash script works fine in a deployment where the flagd container is not injected, and fails otherwise.
Is this the expected behavior? If yes, is there any reason for preventing label changes on the pod?
@mng1dev yes I can also see the same behavior when dealing with the operator. And I used kubectl label command instead of API access which is same [1]
k label pods/mypodname foo=bar -n mynamespace
I found this[2] issue in K8s and when tried in my local setup I get the same error message. And k8s docs also confirm the same [3]
Pod updates may not change fields other than spec.containers[].image, spec.initContainers[].image, spec.activeDeadlineSeconds or spec.tolerations. For spec.tolerations, you can only add new entries.
I think what happens here is with OFO, there's an extra validation when mutating the pod through webhook which enforce the rules defined for the pod. So I think label update should be done at the deployment instead of the pod.
Let me know more details on your requirement so we can check more on this.
Hello,
I am trying to configure the operator for my deployment.
However, part of my application logic also needs to set the value of a label of my pods on-the-fly, and this seems to be blocked on the pods where the flagd container is injected by the webhook.
The below bash script works fine in a deployment where the flagd container is not injected, and fails otherwise.
Is this the expected behavior? If yes, is there any reason for preventing label changes on the pod?
The text was updated successfully, but these errors were encountered: