Skip to content

Commit

Permalink
kustomize lookup plugin: build_flags
Browse files Browse the repository at this point in the history
Allow setting a string of optional build_flags at the end of the
command.
  • Loading branch information
eb4x committed Oct 26, 2021
1 parent 91b80b1 commit 985f72a
Showing 1 changed file with 6 additions and 0 deletions.
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
requirements:
- "python >= 3.6"
Expand Down Expand Up @@ -136,6 +139,9 @@ def run(
)
)

if "build_flags" in kwargs:
command += [kwargs["build_flags"]]

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

0 comments on commit 985f72a

Please sign in to comment.