fix: update petimeter

This commit is contained in:
2024-02-15 20:01:42 +01:00
parent 2fc6aba9ca
commit 4b8905ec57
11 changed files with 47 additions and 35 deletions
+17 -8
View File
@@ -4,34 +4,43 @@ metadata:
name: petimeter
namespace: argocd
spec:
goTemplate: true
generators:
- list:
elements:
- cluster: https://kubernetes.default.svc
env: prod
hostname: petimeter.srv.oceanbox.io
autoSync: false
prune: true
- cluster: https://staging-vcluster.staging-vcluster:443
env: staging
hostname: petimeter.beta.oceanbox.io
autoSync: true
prune: true
template:
metadata:
name: '{{ env }}-petimeter'
name: '{{ .env }}-petimeter'
spec:
project: atlantis
destination:
namespace: atlantis
server: '{{ cluster }}'
server: '{{ .cluster }}'
sources:
- repoURL: https://gitlab.com/oceanbox/manifests.git
targetRevision: HEAD
targetRevision: dev
path: charts/petimeter
plugin:
name: kustomize-helm-with-rewrite
parameters:
- name: env
string: '{{ env }}'
string: '{{ .env }}'
- name: hostname
string: '{{ hostname }}'
- repoURL: https://gitlab.com/oceanbox/manifests.git
targetRevision: HEAD
path: charts/petimeter/manifests
string: '{{ .hostname }}'
templatePatch: |
{{- if .autoSync }}
spec:
syncPolicy:
automated:
prune: {{ .prune }}
{{- end }}