fix(argocd): url-shortener enfin syncable — ignorer le volumeName épinglé de son PVC #44
@@ -24,6 +24,14 @@ spec:
|
|||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: {{ $ns }}
|
namespace: {{ $ns }}
|
||||||
|
{{- /* Champs à exclure du diff (ex: /spec/volumeName d'un PVC rebindé à la
|
||||||
|
main après le drill coupure de courant — immuable côté API). À coupler
|
||||||
|
avec la syncOption RespectIgnoreDifferences=true pour que l'apply
|
||||||
|
réinjecte la valeur live au lieu de tenter de la vider. */}}
|
||||||
|
{{- with $app_attr.ignoreDifferences }}
|
||||||
|
ignoreDifferences:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
{{- if $app_attr.syncPolicy }}
|
{{- if $app_attr.syncPolicy }}
|
||||||
{{- toYaml $app_attr.syncPolicy | nindent 4 }}
|
{{- toYaml $app_attr.syncPolicy | nindent 4 }}
|
||||||
@@ -34,6 +42,9 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
|
{{- range $app_attr.syncOptions }}
|
||||||
|
- {{ . }}
|
||||||
|
{{- end }}
|
||||||
{{- /*
|
{{- /*
|
||||||
Non-prod environments (ADR-0002 elision rule): one extra Application per env
|
Non-prod environments (ADR-0002 elision rule): one extra Application per env
|
||||||
under `<app_attr>.envs`. Each renders the SAME repo + chart, overlaid with
|
under `<app_attr>.envs`. Each renders the SAME repo + chart, overlaid with
|
||||||
|
|||||||
@@ -4,6 +4,15 @@
|
|||||||
gitea_applications:
|
gitea_applications:
|
||||||
url-shortener:
|
url-shortener:
|
||||||
annotations: {}
|
annotations: {}
|
||||||
|
# Le PVC live a un spec.volumeName épinglé (rebind du volume Longhorn) que
|
||||||
|
# le chart ne déclare pas : sans ceci, chaque sync tente de le vider et
|
||||||
|
# l'API le refuse (spec immuable) → SyncError permanent.
|
||||||
|
ignoreDifferences:
|
||||||
|
- kind: PersistentVolumeClaim
|
||||||
|
jsonPointers:
|
||||||
|
- /spec/volumeName
|
||||||
|
syncOptions:
|
||||||
|
- RespectIgnoreDifferences=true
|
||||||
tools:
|
tools:
|
||||||
annotations: {}
|
annotations: {}
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
|
|||||||
Reference in New Issue
Block a user