wip: experimenting with avoiding applicationsets
This commit is contained in:
@@ -0,0 +1,68 @@
|
|||||||
|
{{- range .Values.atlantis.envs }}
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: {{ . }}-atlantis
|
||||||
|
namespace: argocd
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: {{ . }}-atlantis
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
project: atlantis
|
||||||
|
sources:
|
||||||
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
|
targetRevision: main
|
||||||
|
ref: values
|
||||||
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
|
targetRevision: main
|
||||||
|
path: values/atlantis
|
||||||
|
plugin:
|
||||||
|
name: kustomize-helm-with-rewrite
|
||||||
|
parameters:
|
||||||
|
- name: env
|
||||||
|
string: {{ . }}
|
||||||
|
- name: hostname
|
||||||
|
string: maps.oceanbox.io
|
||||||
|
- repoURL: https://charts.bitnami.com/bitnami
|
||||||
|
targetRevision: 20.1.7
|
||||||
|
chart: redis
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- $values/values/atlantis/{{ . }}/redis.yaml
|
||||||
|
ignoreDifferences:
|
||||||
|
- kind: Secret
|
||||||
|
name: azure-keyvault
|
||||||
|
jqPathExpressions:
|
||||||
|
- '.data'
|
||||||
|
- '.metadata.labels'
|
||||||
|
- '.metadata.annotations'
|
||||||
|
- kind: Secret
|
||||||
|
name: {{ . }}-atlantis-rabbitmq
|
||||||
|
jqPathExpressions:
|
||||||
|
- '.data'
|
||||||
|
- '.metadata.labels'
|
||||||
|
- '.metadata.annotations'
|
||||||
|
- kind: Secret
|
||||||
|
name: {{ . }}-archmeister-replication
|
||||||
|
jqPathExpressions:
|
||||||
|
- '.data'
|
||||||
|
- '.metadata.labels'
|
||||||
|
- '.metadata.annotations'
|
||||||
|
- kind: Secret
|
||||||
|
name: {{ . }}-archmeister-ca
|
||||||
|
jqPathExpressions:
|
||||||
|
- '.data'
|
||||||
|
- '.metadata.labels'
|
||||||
|
- '.metadata.annotations'
|
||||||
|
syncPolicy:
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
# automated:
|
||||||
|
# prune: true
|
||||||
|
# selfHeal: false
|
||||||
|
{{- end }}
|
||||||
@@ -354,3 +354,7 @@ oncall:
|
|||||||
enabled: false
|
enabled: false
|
||||||
externalGrafana:
|
externalGrafana:
|
||||||
url: ""
|
url: ""
|
||||||
|
atlantis:
|
||||||
|
envs:
|
||||||
|
- prod
|
||||||
|
- staging
|
||||||
|
|||||||
Reference in New Issue
Block a user