Try server-side apply

This commit is contained in:
Seth Call 2026-02-06 22:13:25 -06:00
parent a173b8942a
commit 10d1bfd12e
3 changed files with 16 additions and 13 deletions

View File

@ -79,7 +79,7 @@ pipelines:
image: node:22
script:
- apt-get update && apt-get install -y curl jq git
- curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
- curl -LO "https://dl.k8s.io/release/v1.28.3/bin/linux/amd64/kubectl"
- install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
- echo $KUBE_CONFIG_PRD | base64 -d > kubeconfig
- export KUBECONFIG=$(pwd)/kubeconfig
@ -163,7 +163,7 @@ pipelines:
image: node:22
script:
- apt-get update && apt-get install -y curl jq git
- curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
- curl -LO "https://dl.k8s.io/release/v1.28.3/bin/linux/amd64/kubectl"
- install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
- echo $KUBE_CONFIG_STG | base64 -d > kubeconfig
- export KUBECONFIG=$(pwd)/kubeconfig
@ -219,7 +219,7 @@ pipelines:
image: node:22
script:
- apt-get update && apt-get install -y curl jq git
- curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
- curl -LO "https://dl.k8s.io/release/v1.28.3/bin/linux/amd64/kubectl"
- install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
- echo $KUBE_CONFIG_STG | base64 -d > kubeconfig
- export KUBECONFIG=$(pwd)/kubeconfig

View File

@ -12,13 +12,15 @@ spec:
repoURL: 'git@bitbucket.org:jamkazam/video-iac.git'
targetRevision: {{ .Values.gitBranch }}
project: default
# syncPolicy:
syncPolicy:
syncOptions:
- ServerSideApply=true
# automated:
# prune: true
# allowEmpty: false
# retry:
# limit: 5
# backoff:
# duration: 5s
# factor: 2
# maxDuration: 3m
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 3m

View File

@ -30,6 +30,7 @@ spec:
syncPolicy:
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
automated:
prune: true
selfHeal: true