Skip to content

Commit

Permalink
Do not adjust PersistentVolumeClaimTemplates in StatefulSets
Browse files Browse the repository at this point in the history
k8s does not allow removing PVCTs after the STS has been created.
  • Loading branch information
Stefan Bethke authored and stblassitude committed Jul 19, 2024
1 parent a931749 commit 58a0ae4
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ public void reconcile(KubernetesClient kubernetesClient, String namespace, HasMe
existing.edit(r ->
new StatefulSetBuilder(r).editOrNewSpec()
.withMinReadySeconds(spec.getMinReadySeconds())
// .withPersistentVolumeClaimRetentionPolicy(spec.getPersistentVolumeClaimRetentionPolicy()) // do not use because of feature gate?
.withVolumeClaimTemplates(spec.getVolumeClaimTemplates())
.withReplicas(spec.getReplicas())
.withTemplate(spec.getTemplate())
.withUpdateStrategy(spec.getUpdateStrategy())
Expand Down

0 comments on commit 58a0ae4

Please sign in to comment.