-
Notifications
You must be signed in to change notification settings - Fork 110
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
[ci_gen_kustomize_values] Allow reject vars patches #2608
[ci_gen_kustomize_values] Allow reject vars patches #2608
Conversation
Thanks for the PR! ❤️ |
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/f13d73ed042b4108a4274d1e3ed9f242 ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 44m 23s |
{% set _ = _final_list.extend(entry) -%} | ||
{% endif -%} | ||
{% endfor -%} | ||
{{ _final_list | unique }} |
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.
I think we can just concatenate the lists, and then | flatten | unique
?
{{
(_cifmw_gen_kustomize_values_reject_extra_expressions +
cifmw_ci_gen_kustomize_values_remove_keys_expressions)
| flatten | unique
}}
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.
@hjensas the approach I took allows the user to pass individual regexes, thus the if/else
EDIT: Give me a few to try what you said, it may work in this case, true.
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.
@hjensas Good catch man, i didn't thought about using flatten
this time.
381a1a3
to
93455e4
Compare
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/21d78bbc4c794213989884792c39341c ✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 28m 35s |
93455e4
to
a622355
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lewisdenny 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 |
/lgtm |
No description provided.