Files
manifests/values/namecheap-webhook/manifests/namecheap-webhook.yaml
T
2025-10-31 12:11:36 +01:00

46 lines
1.1 KiB
YAML

{{- if .Values.clusterConfig.argo.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: namecheap-webhook
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: cert-manager
server: 'https://kubernetes.default.svc'
sources:
- repoURL: {{ .Values.clusterConfig.manifests }}
targetRevision: HEAD
path: helmfile.d
plugin:
name: helmfile-cmp
env:
- name: CLUSTER_NAME
value: {{ .Values.clusterConfig.cluster }}
- name: HELMFILE_ENVIRONMENT
value: default
- name: HELMFILE_FILE_PATH
value: namecheap-webhook.yaml.gotmpl
project: sys
ignoreDifferences:
- group: cert-manager.io
kind: Certificate
jqPathExpressions:
- '.spec.duration'
syncPolicy:
managedNamespaceMetadata:
labels:
component: sys
syncOptions:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
- ServerSideApply=true
{{- if .Values.namecheap.autosync }}
automated:
prune: true
# selfHeal: false
{{- end }}
{{- end }}