Skip to content

Commit 0f76623

Browse files
committed
kustomize lookup plugin: build_flags
Allow setting a string of optional build_flags at the end of the command.
1 parent 91b80b1 commit 0f76623

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugins/lookup/kustomize.py

+6
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
opt_dirs:
3131
description:
3232
- An optional list of directories to search for the executable in addition to PATH.
33+
build_flags:
34+
description:
35+
- Set additional build flags, like --enable-alpha-plugins
3336
3437
requirements:
3538
- "python >= 3.6"
@@ -136,6 +139,9 @@ def run(
136139
)
137140
)
138141

142+
if "build_flags" in kwargs:
143+
command += [kwargs["build_flags"]]
144+
139145
(out, err) = run_command(command)
140146
if err:
141147
raise AnsibleLookupError(

0 commit comments

Comments
 (0)