mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
helm: add noHooks option
This commit is contained in:
parent
9492528225
commit
67e1d98464
2 changed files with 15 additions and 1 deletions
|
|
@ -20,6 +20,8 @@ with lib;
|
|||
kubeVersion ? null,
|
||||
# whether to include CRD
|
||||
includeCRDs ? false,
|
||||
# whether to include hooks
|
||||
noHooks ? false,
|
||||
}: let
|
||||
valuesJsonFile = builtins.toFile "${name}-values.json" (builtins.toJSON values);
|
||||
in
|
||||
|
|
@ -32,6 +34,7 @@ with lib;
|
|||
${optionalString (namespace != null) "--namespace ${namespace}"} \
|
||||
${optionalString (values != {}) "-f ${valuesJsonFile}"} \
|
||||
${optionalString includeCRDs "--include-crds"} \
|
||||
${optionalString noHooks "--no-hooks"} \
|
||||
${chart} >resources.yaml
|
||||
|
||||
# split multy yaml file into multiple files
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue