Commit 3206f96d authored by knightXun's avatar knightXun Committed by GitHub

Update stateful_set_utils.go

find a syntax error,please check it.
parent 72207db4
...@@ -89,7 +89,7 @@ func getPodName(set *apps.StatefulSet, ordinal int) string { ...@@ -89,7 +89,7 @@ func getPodName(set *apps.StatefulSet, ordinal int) string {
return fmt.Sprintf("%s-%d", set.Name, ordinal) return fmt.Sprintf("%s-%d", set.Name, ordinal)
} }
// getPersistentVolumeClaimName getsthe name of PersistentVolumeClaim for a Pod with an ordinal index of ordinal. claim // getPersistentVolumeClaimName gets the name of PersistentVolumeClaim for a Pod with an ordinal index of ordinal. claim
// must be a PersistentVolumeClaim from set's VolumeClaims template. // must be a PersistentVolumeClaim from set's VolumeClaims template.
func getPersistentVolumeClaimName(set *apps.StatefulSet, claim *v1.PersistentVolumeClaim, ordinal int) string { func getPersistentVolumeClaimName(set *apps.StatefulSet, claim *v1.PersistentVolumeClaim, ordinal int) string {
// NOTE: This name format is used by the heuristics for zone spreading in ChooseZoneForVolume // NOTE: This name format is used by the heuristics for zone spreading in ChooseZoneForVolume
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment