templates/secure-go-service/skeleton/argocd-app.yaml

29 lines
626 B
YAML

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: ${{ values.name }}
namespace: openshift-gitops
labels:
category: app
spec:
project: default
source:
repoURL: ${{ values.repoUrl }}
targetRevision: master
path: deploy
destination:
server: https://kubernetes.default.svc
namespace: ${{ values.name }}
ignoreDifferences:
- group: apps
kind: Deployment
jsonPointers:
- /spec/template/spec/containers/0/image
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true