Skip to content

Commit

Permalink
fix: ignore differences for ArgoCD
Browse files Browse the repository at this point in the history
certain objects are showing a diff state, namely statefulSets and CSI
drivers when installed via Helm.

In the case of CSI's this fixes deployment blockers imposed by Argocd
The statefulSet is merely an 'eyesore'

argoproj/argo-cd#11143
  • Loading branch information
llajas committed Feb 24, 2024
1 parent 77a13e3 commit ddae185
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
11 changes: 6 additions & 5 deletions bootstrap/root/templates/stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ spec:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
- ServerSideApply=true
{{- if eq $stack.name "csi-driver-smb" }}
ignoreDifferences:
- group: storage.k8s.io
kind: CSIDriver
name: smb.csi.k8s.io
jsonPointers:
- /spec/seLinuxMount
{{- end }}
jqPathExpressions:
- .spec.seLinuxMount
- group: apps
kind: StatefulSet
jqPathExpressions:
- .'.spec.volumeClaimTemplates[]?'
{{- end }}
1 change: 0 additions & 1 deletion bootstrap/root/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ stacks:
- name: system
- name: platform
- name: apps
- name: csi-driver-smb

0 comments on commit ddae185

Please sign in to comment.