-
Notifications
You must be signed in to change notification settings - Fork 251
OCPBUGS-60126: HCP: fix handling of tolerations with no key/value #2764
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
base: master
Are you sure you want to change the base?
Conversation
@csrwng: This pull request references Jira Issue OCPBUGS-60126, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
/jira refresh |
@csrwng: This pull request references Jira Issue OCPBUGS-60126, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
@csrwng what was the failure? Is the yaml marshaller failing to output a correct yaml? |
@kyrtapz so what was happening is that we were doing the serialization in one shot for all tolerations, and then removing any lines that contained nil or empty string value. So for a no key/value toleration, the initial serialization looked something like:
Then we removed the lines with empty strings, and ended up with only:
which is not valid YAML list syntax |
I simply changed serialization to a single toleration at a time, instead of the entire slice, and prepending the proper '- ' before each entry. |
Fixes rendering of tolerations that do not include a key/value.
63516a1
to
ceacbf8
Compare
@csrwng: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: csrwng, kyrtapz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/jira refresh The requirements for Jira bugs have changed (Jira issues linked to PRs on main branch need to target different OCP), recalculating validity. |
@openshift-bot: This pull request references Jira Issue OCPBUGS-60126, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Fixes rendering of tolerations that do not include a key/value.
Ref: OCPBUGS-60126