Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eb4x
Copy link

@eb4x eb4x commented Oct 26, 2021

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
  • Feature Pull Request
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".

Allow setting a string of optional build_flags at the end of the
command.
@abikouo
Copy link
Contributor

abikouo commented Nov 16, 2021

@eb4x Thanks for taking the time to contribute to this repo.
You need to add a changelog for this feature, additionally could you please update the corresponding tests located here ? https://github.com/ansible-collections/kubernetes.core/blob/main/molecule/default/tasks/lookup_kustomize.yml

Copy link
Contributor

@abikouo abikouo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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:
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants