-
Notifications
You must be signed in to change notification settings - Fork 138
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
kustomize lookup plugin: build_flags #273
base: main
Are you sure you want to change the base?
Conversation
Allow setting a string of optional build_flags at the end of the command.
@eb4x Thanks for taking the time to contribute to this repo. |
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.
changelog required
update molecule tests https://github.com/ansible-collections/kubernetes.core/blob/main/molecule/default/tasks/lookup_kustomize.yml
@@ -30,6 +30,9 @@ | |||
opt_dirs: | |||
description: | |||
- An optional list of directories to search for the executable in addition to PATH. | |||
build_flags: | |||
description: | |||
- Set additional build flags, like --enable-alpha-plugins |
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.
- Set additional build flags, like --enable-alpha-plugins | |
- Set additional build flags, like C(--enable-alpha-plugins). |
@@ -136,6 +139,9 @@ def run( | |||
) | |||
) | |||
|
|||
if "build_flags" in kwargs: |
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.
Please create a changelog fragment. See this fragment as an example.
Allow setting a string of optional build_flags at the end of the
command.
SUMMARY
A string to add some params/options to the end of "kustomize build dir" / "kubectl kustomize dir" command.
This could have been a list, or some other grandiose parsing event, I haven't put much thought into other use-cases.
ISSUE TYPE
COMPONENT NAME
kustomize lookup plugin
ADDITIONAL INFORMATION
It feels like a one-off kind of thing, where I just need to add "--enable-alpha-plugins" at the end. Maybe someone else will end up in a similar predicament later down the line, and be relieved that they can just build_flags="--all-my great --build-options are-available --yay".