You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfmt.Errorf("invalid container index: %s, must be a valid integer", words[3])
74
+
}
75
+
iflen(oldTemp.Spec.Containers) <=idx {
76
+
returnfmt.Errorf("container index %d is out of range, pod template has %d containers (0-%d)", idx, len(oldTemp.Spec.Containers), len(oldTemp.Spec.Containers)-1)
74
77
}
75
78
ifop.Operation=="remove"||op.Operation=="add" {
76
79
// Before k8s 1.32, we can not resize resources for a container with no limit or request
77
80
// TODO(Abner-1) change it if 1.32 released and allowing this operation
78
-
returnerrors.New("can not add or remove resources")
81
+
returnerrors.New("can not add or remove resources - only modification of existing resources is supported until Kubernetes 1.32")
79
82
}
80
83
81
84
ifop.Value==nil {
82
-
returnerrors.New("json patch value is nil")
85
+
returnerrors.New("json patch value is nil - a valid resource quantity value must be provided")
returnfalse, fmt.Errorf("some container status is not reported")
181
+
returnfalse, fmt.Errorf("some container status is not reported - expected %d container statuses but got %d", len(containers), len(pod.Status.ContainerStatuses))
returnfalse, fmt.Errorf("container %s resources not changed", cs.Name)
185
+
returnfalse, fmt.Errorf("container %s resources not changed - requested resources in spec don't match resources in status, update may still be in progress", cs.Name)
0 commit comments