- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for validateContainer (0.33 sec)
-
pkg/registry/core/pod/strategy.go
Path: fmt.Sprintf("/portForward/%s/%s", pod.Namespace, pod.Name), RawQuery: params.Encode(), } return loc, nodeInfo.Transport, nil } // validateContainer validate container is valid for pod, return valid container func validateContainer(container string, pod *api.Pod) (string, error) { if len(container) == 0 { switch len(pod.Spec.Containers) { case 1: container = pod.Spec.Containers[0].Name
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 17:51:48 UTC 2024 - 29.8K bytes - Viewed (0) -
pkg/api/pod/util.go
// Drop the RestartPolicy field of init containers. for i := range podSpec.InitContainers { podSpec.InitContainers[i].RestartPolicy = nil } // For other types of containers, validateContainers will handle them. } if !utilfeature.DefaultFeatureGate.Enabled(features.RecursiveReadOnlyMounts) && !rroInUse(oldPodSpec) { for i := range podSpec.Containers {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 41.3K bytes - Viewed (0) -
pkg/apis/core/validation/validation.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 349.5K bytes - Viewed (1) -
pkg/apis/core/validation/validation_test.go
{ResourceName: "cpu", RestartPolicy: "RestartContainer"}, }, }, } var PodRestartPolicy core.RestartPolicy = "Always" if errs := validateContainers(successCase, volumeDevices, nil, defaultGracePeriod, field.NewPath("field"), PodValidationOptions{}, &PodRestartPolicy, noUserNamespace); len(errs) != 0 { t.Errorf("expected success: %v", errs) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 857.7K bytes - Viewed (0)