-
Notifications
You must be signed in to change notification settings - Fork 9
[WIP]Fix parsing of extravars with multiple fields #57
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: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: kishen-v The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/cc @Karthik-K-N for the golang bits. Thanks in advance! |
d1ae2c4 to
16c8315
Compare
Rajalakshmi-Girish
left a comment
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.
@kishen-v What job definitions do you think needs modifications after this?
This search output https://github.com/search?q=repo%3Appc64le-cloud%2Ftest-infra%20extra-vars&type=code is only showing instances where we only variable is passed with --extra-vars flag.
| tasks: | ||
| - set_fact: | ||
| prepull_images: "{{ prepull_images + ['registry.k8s.io/pause:3.10'] }}" | ||
| prepull_images: "{{ (prepull_images | from_json if prepull_images is string else prepull_images) + ['registry.k8s.io/pause:3.10'] }}" |
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.
Why is this change part of the extravars modification? I might be missing something here. :|
The current design doesn't parse the complete set of key:value pairs passed to the --extra-vars flag. The implemented approach accepts the vars as a string and performs operations to allow them to be parsed separately.
/hold - Until the PR is approved, as changes need to be done in a few job definitions.