Fix: Remove ServerSideApply and add ignoreDifferences for StatefulSet volumeClaimTemplates

This commit is contained in:
dvirlabs 2026-05-17 08:18:10 +03:00
parent ff444d09b3
commit b094fe6fec

View File

@ -20,6 +20,12 @@ spec:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc
namespace: mail namespace: mail
ignoreDifferences:
- group: apps
kind: StatefulSet
jqPathExpressions:
- '.spec.volumeClaimTemplates[]?'
syncPolicy: syncPolicy:
automated: automated:
prune: true prune: true
@ -27,7 +33,7 @@ spec:
allowEmpty: false allowEmpty: false
syncOptions: syncOptions:
- CreateNamespace=true - CreateNamespace=true
- ServerSideApply=true - RespectIgnoreDifferences=true
retry: retry:
limit: 5 limit: 5
backoff: backoff: