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 8d6930a commit 3de6a21
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 3de6a21

Please sign in to comment.