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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions plugins/lookup/kustomize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).


requirements:
- "python >= 3.6"
Expand Down Expand Up @@ -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.

command += [kwargs["build_flags"]]

(out, err) = run_command(command)
if err:
raise AnsibleLookupError(
Expand Down