Skip to content

Commit

Permalink
Fixed a broken cluster, whoops.
Browse files Browse the repository at this point in the history
  • Loading branch information
danmanners committed Sep 10, 2023
1 parent 43f7bb1 commit df3a783
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
namespace: '{{namespace}}'
syncPolicy:
automated:
prune: true
prune: false
syncOptions:
- CreateNamespace=true
ignoreDifferences:
Expand Down
9 changes: 6 additions & 3 deletions manifests/bootstrapping-onprem/setup.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/usr/bin/env bash
function kbaph() {
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
echo "=-=-=-= Rendering $1"
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
kustomize build --enable-alpha-plugins --enable-helm $1
}

Expand All @@ -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
Expand Down

0 comments on commit df3a783

Please sign in to comment.