apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: nginx-test
namespace: argocd
annotations:
argo.octopus.com/project.nginx-test: "argo-cd-nginx"
argo.octopus.com/environment.nginx-test: "test"
argo.octopus.com/project.ref-source: "argo-cd-nginx"
argo.octopus.com/environment.ref-source: "test"
# See https://octopus.com/docs/argo-cd/annotations/helm-annotations
argo.octopus.com/image-replace-paths.nginx-test: "docker.io/{{ .Values.image.repository }}:{{ .Values.image.tag }}"
spec:
project: default
sources:
- name: nginx-test
repoURL: https://mockgit.octopus.com/repo/argocd
path: "nginx/nginx"
targetRevision: main
helm:
valueFiles:
- $remote-values/helm/values/nginx-test-values.yaml
- name: ref-source
repoURL: https://mockgit.octopus.com/repo/argocd
targetRevision: main
ref: remote-values
destination:
server: https://kubernetes.default.svc
namespace: nginx-test
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true