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 69b60c2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 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
2 changes: 1 addition & 1 deletion manifests/workloads/jenkins-oss/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ metadata:
app.kubernetes.io/instance: jenkins
spec:
type: ExternalName
externalName: kube.danmanners.com
externalName: nginx.homelab.danmanners.com
sessionAffinity: None

0 comments on commit 69b60c2

Please sign in to comment.