diff --git a/argo1/templates/ytmd.yaml b/argo1/templates/ytmd.yaml new file mode 100644 index 0000000..be554d3 --- /dev/null +++ b/argo1/templates/ytmd.yaml @@ -0,0 +1,33 @@ +# {{ if (index .Values "ytmd").enabled }} +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: {{ .Release.Name }}-ytmd + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + source: + path: manifests + repoURL: https://git.strudelline.net/infra/ytmd + targetRevision: "main" + directory: + recurse: true + include: '*.yaml' + destination: + server: "https://kubernetes.default.svc" + namespace: argocd + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + retry: + limit: 10 + backoff: + duration: 5s + factor: 2 + maxDuration: 3m0s +# {{- end }} diff --git a/argo1/values.yaml b/argo1/values.yaml index 73d998c..80f98d3 100644 --- a/argo1/values.yaml +++ b/argo1/values.yaml @@ -111,3 +111,4 @@ external-secrets: {enabled: true} secrets: {enabled: true} sealed-secrets: {enabled: true} trust-manager: {enabled: true} +ytmd: {enabled: true}