Skip to content

fix: add api version kind to statefulset pvc#1104

Open
arcanez wants to merge 2 commits intonats-io:mainfrom
arcanez:fix/add-apiVersion-kind-to-statefulset-pvc
Open

fix: add api version kind to statefulset pvc#1104
arcanez wants to merge 2 commits intonats-io:mainfrom
arcanez:fix/add-apiVersion-kind-to-statefulset-pvc

Conversation

@arcanez
Copy link

@arcanez arcanez commented Dec 22, 2025

this fixes #1103

Problem: When using ArgoCD, the NATS StatefulSet always shows a "diff" for volumeClaimTemplates. This is because the chart omits apiVersion and kind, which the Kubernetes API server then automatically adds to the live resource. ArgoCD interprets this as a drift from the desired state.

Solution: Explicitly add apiVersion: v1 and kind: PersistentVolumeClaim to the jetstream-pvc.yaml and resolver-pvc.yaml files.

Impact: This is a non-breaking change that ensures the rendered Helm output matches the live cluster state, resulting in a "Healthy/Synced" status in GitOps controllers.
CAVEAT: This may result in a sync error for existing deployments since volumeClaimTemplates is immutable, but a delete & recreate of the StatefulSet can remedy this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

volumeClaimTemplates triggers persistent Out-of-Sync status in GitOps (ArgoCD)

1 participant