File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
modules/user_kustomizations Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,10 @@ locals {
1717 user_kustomize_defaulted = length (var. user_kustomizations ) > 0 ? var. user_kustomizations : local. default_user_kustomize
1818
1919 processed_kustomizes = {
20- for key , config in local . user_kustomize_defaulted : key => {
20+ for key , config in local . user_kustomize_defaulted : key => merge (config, {
2121 # kustomize_parameters may contain secrets
2222 kustomize_parameters = sensitive (config. kustomize_parameters )
23- source_folder = config.source_folder
24- pre_commands = config.pre_commands
25- post_commands = config.post_commands
26- }
23+ })
2724 }
2825}
2926
Original file line number Diff line number Diff line change @@ -55,11 +55,11 @@ resource "null_resource" "kustomization_user_deploy" {
5555 echo "Running pre-install script from $dest_folder"
5656 /bin/bash "$dest_folder/preinstall.sh"
5757
58- if [ -s "$dest_folder/kustomization.yaml" ]; then
58+ if [ -s "$dest_folder/kustomization.yaml" ] || [ -s "$dest_folder/kustomization.yml" ] || [ -s "$dest_folder/Kustomization" ] ; then
5959 echo "Applying kustomization from $dest_folder"
6060 kubectl apply -k "$dest_folder"
6161 else
62- echo "No kustomization.yaml in $dest_folder, skipping apply."
62+ echo "No valid kustomization file found in $dest_folder, skipping apply."
6363 fi
6464
6565 echo "Running post-install script from $dest_folder"
You can’t perform that action at this time.
0 commit comments