mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Small updates and comment fixes
This commit is contained in:
parent
af58b491ef
commit
8a9c126eca
@ -148,8 +148,8 @@ type StatefulSetPersistentVolumeClaimRetentionPolicy struct {
|
||||
type StatefulSetOrdinals struct {
|
||||
// Start is the number representing the first index that is used to represent
|
||||
// replica ordinals. Defaults to 0.
|
||||
// If set, replica ordinals will be numbered
|
||||
// [.spec.ordinals.start, .spec.ordinals.start - .spec.replicas).
|
||||
// If set, replica ordinals will be numbered in the range:
|
||||
// [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).
|
||||
// +optional
|
||||
Start int32
|
||||
}
|
||||
|
@ -2696,7 +2696,7 @@ func checkClaimInvarients(set *apps.StatefulSet, pod *v1.Pod, claim *v1.Persiste
|
||||
return fmt.Errorf("claim %s does not have owner ref on condemned pod %s for scaledown delete", claim.Name, pod.Name)
|
||||
}
|
||||
if podInOrdinalRange(pod, set) && hasOwnerRef(claim, pod) {
|
||||
return fmt.Errorf("claim %s has unexpected owner ref on condemned pod %s for scaledown delete. ordinal: %d, [%d,%d]", claim.Name, pod.Name, getOrdinal(pod), getStartOrdinal(set), getEndOrdinal(set))
|
||||
return fmt.Errorf("claim %s has unexpected owner ref on condemned pod %s for scaledown delete", claim.Name, pod.Name)
|
||||
}
|
||||
case policy.WhenScaled == delete && policy.WhenDeleted == delete:
|
||||
if !podInOrdinalRange(pod, set) {
|
||||
|
@ -168,8 +168,8 @@ type StatefulSetPersistentVolumeClaimRetentionPolicy struct {
|
||||
type StatefulSetOrdinals struct {
|
||||
// Start is the number representing the first index that is used to represent
|
||||
// replica ordinals. Defaults to 0.
|
||||
// If set, replica ordinals will be numbered
|
||||
// [.spec.ordinals.start, .spec.ordinals.start - .spec.replicas).
|
||||
// If set, replica ordinals will be numbered in the range:
|
||||
// [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).
|
||||
// +optional
|
||||
Start int32 `json:"start" protobuf:"varint,1,opt,name=start"`
|
||||
}
|
||||
|
@ -209,8 +209,8 @@ type StatefulSetPersistentVolumeClaimRetentionPolicy struct {
|
||||
type StatefulSetOrdinals struct {
|
||||
// Start is the number representing the first index that is used to represent
|
||||
// replica ordinals. Defaults to 0.
|
||||
// If set, replica ordinals will be numbered
|
||||
// [.spec.ordinals.start, .spec.ordinals.start - .spec.replicas).
|
||||
// If set, replica ordinals will be numbered in the range:
|
||||
// [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).
|
||||
// +optional
|
||||
Start int32 `json:"start" protobuf:"varint,1,opt,name=start"`
|
||||
}
|
||||
|
@ -219,8 +219,8 @@ type StatefulSetPersistentVolumeClaimRetentionPolicy struct {
|
||||
type StatefulSetOrdinals struct {
|
||||
// Start is the number representing the first index that is used to represent
|
||||
// replica ordinals. Defaults to 0.
|
||||
// If set, replica ordinals will be numbered
|
||||
// [.spec.ordinals.start, .spec.ordinals.start - .spec.replicas).
|
||||
// If set, replica ordinals will be numbered in the range:
|
||||
// [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).
|
||||
// +optional
|
||||
Start int32 `json:"start" protobuf:"varint,1,opt,name=start"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user