Try server-side apply
This commit is contained in:
parent
a173b8942a
commit
10d1bfd12e
|
|
@ -79,7 +79,7 @@ pipelines:
|
||||||
image: node:22
|
image: node:22
|
||||||
script:
|
script:
|
||||||
- apt-get update && apt-get install -y curl jq git
|
- 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
|
- install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
|
||||||
- echo $KUBE_CONFIG_PRD | base64 -d > kubeconfig
|
- echo $KUBE_CONFIG_PRD | base64 -d > kubeconfig
|
||||||
- export KUBECONFIG=$(pwd)/kubeconfig
|
- export KUBECONFIG=$(pwd)/kubeconfig
|
||||||
|
|
@ -163,7 +163,7 @@ pipelines:
|
||||||
image: node:22
|
image: node:22
|
||||||
script:
|
script:
|
||||||
- apt-get update && apt-get install -y curl jq git
|
- 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
|
- install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
|
||||||
- echo $KUBE_CONFIG_STG | base64 -d > kubeconfig
|
- echo $KUBE_CONFIG_STG | base64 -d > kubeconfig
|
||||||
- export KUBECONFIG=$(pwd)/kubeconfig
|
- export KUBECONFIG=$(pwd)/kubeconfig
|
||||||
|
|
@ -219,7 +219,7 @@ pipelines:
|
||||||
image: node:22
|
image: node:22
|
||||||
script:
|
script:
|
||||||
- apt-get update && apt-get install -y curl jq git
|
- 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
|
- install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
|
||||||
- echo $KUBE_CONFIG_STG | base64 -d > kubeconfig
|
- echo $KUBE_CONFIG_STG | base64 -d > kubeconfig
|
||||||
- export KUBECONFIG=$(pwd)/kubeconfig
|
- export KUBECONFIG=$(pwd)/kubeconfig
|
||||||
|
|
|
||||||
|
|
@ -12,13 +12,15 @@ spec:
|
||||||
repoURL: 'git@bitbucket.org:jamkazam/video-iac.git'
|
repoURL: 'git@bitbucket.org:jamkazam/video-iac.git'
|
||||||
targetRevision: {{ .Values.gitBranch }}
|
targetRevision: {{ .Values.gitBranch }}
|
||||||
project: default
|
project: default
|
||||||
# syncPolicy:
|
syncPolicy:
|
||||||
|
syncOptions:
|
||||||
|
- ServerSideApply=true
|
||||||
# automated:
|
# automated:
|
||||||
# prune: true
|
# prune: true
|
||||||
# allowEmpty: false
|
# allowEmpty: false
|
||||||
# retry:
|
retry:
|
||||||
# limit: 5
|
limit: 5
|
||||||
# backoff:
|
backoff:
|
||||||
# duration: 5s
|
duration: 5s
|
||||||
# factor: 2
|
factor: 2
|
||||||
# maxDuration: 3m
|
maxDuration: 3m
|
||||||
|
|
@ -30,6 +30,7 @@ spec:
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
|
- ServerSideApply=true
|
||||||
automated:
|
automated:
|
||||||
prune: true
|
prune: true
|
||||||
selfHeal: true
|
selfHeal: true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue