Skip to content

Commit

Permalink
only the spec can be equal
Browse files Browse the repository at this point in the history
Signed-off-by: jiuker <[email protected]>
  • Loading branch information
jiuker committed Dec 9, 2022
1 parent 38efd25 commit 089477d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k8sutils/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ func patchStatefulSet(storedStateful *appsv1.StatefulSet, newStateful *appsv1.St
}
}
}
// set stored.volumeClaimTemplates
newStateful.Annotations["storageCapacity"] = storedStateful.Annotations["storageCapacity"]
// set stored.volumeClaimTemplates
newStateful.Spec.VolumeClaimTemplates = storedStateful.Spec.VolumeClaimTemplates
}

Expand Down

0 comments on commit 089477d

Please sign in to comment.