We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8af0d46 + 8a4658f commit 7ba4c7cCopy full SHA for 7ba4c7c
kustdiff
@@ -50,7 +50,15 @@ function build_ref {
50
local safe_path=$(safe_filename "$relative_path")
51
local output_file="$output_dir/${safe_path}.yaml"
52
echo "Running kustomize for $envpath"
53
- kustomize build "$envpath" -o "$output_file"
+
54
+ # Check if kustomization.yaml contains helmCharts
55
+ local helm_flag=""
56
+ if grep -q "helmCharts:" "$envpath/kustomization.yaml"; then
57
+ debug_log "Helm charts detected in $envpath, enabling Helm support"
58
+ helm_flag="--enable-helm"
59
+ fi
60
61
+ kustomize build $helm_flag "$envpath" -o "$output_file"
62
63
if [ "$DEBUG" = "true" ]; then
64
debug_log "Built kustomize for $envpath to $output_file"
0 commit comments