-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Corrected logic for adding tolerations
key in helm template for cilium-operator deployment
#40938
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
Conversation
… for cilium-operator deployment The current Helm Template adds `tolerations` to the cilium-operator deployment by combining: - The contents of `.Values.operator.tolerations` - A `operator: Exists` toleration with `.Values.agentNotReadyTaintKey` as the key However, the `tolerations` key is only added when `.Values.operator.tolerations` exists, so attempting to set `.Values.operator.tolerations` to an empty value results in an error: ``` Error: YAML parse error on cilium/templates/cilium-operator/deployment.yaml: error converting YAML to JSON: yaml: line 110: did not find expected key ``` This patch modifies the condition for adding the `tolerations` key to include an additional OR condition checking for the existence of `.Values.agentNotReadyTaintKey`, thereby resolving this error. Fixes: cilium#40937 Signed-off-by: walnuts1018 <r.juglans.1018@gmail.com>
/test |
/lgtm |
tolerations
key in helm template for cilium-operator deploymenttolerations
key in helm template for cilium-operator deployment
tolerations
key in helm template for cilium-operator deploymenttolerations
key in helm template for cilium-operator deployment
@walnuts1018 can you checked failed tests ? |
I'll check it |
Commit af2e1db does not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
Signed-off-by: walnuts1018 <r.juglans.1018@gmail.com>
af2e1db
to
04a3141
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@walnuts1018 the conformance gateway api test is failing . |
it's a flake. |
/test |
This should be backported for 1.18 too. |
Modified the condition for adding the
tolerations
key to ensure it correctly adds the key even when.Values.operator.tolerations
does not exist, by including an additional OR condition that checks for the presence of.Values.agentNotReadyTaintKey
.Fixes: #40937