From df3a78318f50c1c5a02ff5f297b344f2cbfdd105 Mon Sep 17 00:00:00 2001 From: Dan Manners Date: Sat, 9 Sep 2023 23:16:28 -0400 Subject: [PATCH] Fixed a broken cluster, whoops. --- .../11-bootstrapping-argoprojects/applicationset.yaml | 2 +- manifests/bootstrapping-onprem/setup.sh | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/manifests/bootstrapping-onprem/11-bootstrapping-argoprojects/applicationset.yaml b/manifests/bootstrapping-onprem/11-bootstrapping-argoprojects/applicationset.yaml index fe5930e6..89e17007 100644 --- a/manifests/bootstrapping-onprem/11-bootstrapping-argoprojects/applicationset.yaml +++ b/manifests/bootstrapping-onprem/11-bootstrapping-argoprojects/applicationset.yaml @@ -40,7 +40,7 @@ spec: namespace: '{{namespace}}' syncPolicy: automated: - prune: true + prune: false syncOptions: - CreateNamespace=true ignoreDifferences: diff --git a/manifests/bootstrapping-onprem/setup.sh b/manifests/bootstrapping-onprem/setup.sh index b010becd..d18e60c6 100755 --- a/manifests/bootstrapping-onprem/setup.sh +++ b/manifests/bootstrapping-onprem/setup.sh @@ -1,8 +1,5 @@ #!/usr/bin/env bash function kbaph() { - echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" - echo "=-=-=-= Rendering $1" - echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" kustomize build --enable-alpha-plugins --enable-helm $1 } @@ -20,8 +17,14 @@ function help() { if [[ $# -eq 1 ]]; then for item in $(whereami); do if [[ $1 == "build" ]]; then + echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" + echo "=-=-=-= Rendering $item" + echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" kbaph $item elif [[ $1 == "apply" ]]; then + echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" + echo "=-=-=-= Deploying $item" + echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" kbaph $item | kubectl apply -f - else help