- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for SetObjectDefaults_Pod (0.3 sec)
-
pkg/apis/core/v1/zz_generated.defaults.go
}) scheme.AddTypeDefaultingFunc(&v1.PersistentVolumeList{}, func(obj interface{}) { SetObjectDefaults_PersistentVolumeList(obj.(*v1.PersistentVolumeList)) }) scheme.AddTypeDefaultingFunc(&v1.Pod{}, func(obj interface{}) { SetObjectDefaults_Pod(obj.(*v1.Pod)) }) scheme.AddTypeDefaultingFunc(&v1.PodList{}, func(obj interface{}) { SetObjectDefaults_PodList(obj.(*v1.PodList)) })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 10 14:49:26 UTC 2023 - 37.8K bytes - Viewed (0) -
plugin/pkg/admission/serviceaccount/admission_test.go
Name: DefaultServiceAccountName, Namespace: ns, }, }) v1PodIn := &corev1.Pod{ Spec: corev1.PodSpec{ Containers: []corev1.Container{{}}, }, } v1defaults.SetObjectDefaults_Pod(v1PodIn) pod := &api.Pod{} if err := v1defaults.Convert_v1_Pod_To_core_Pod(v1PodIn, pod, nil); err != nil { t.Fatal(err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 12 17:49:30 UTC 2024 - 36.9K bytes - Viewed (0) -
pkg/apis/core/v1/defaults_test.go
}, Limits: v1.ResourceList{ v1.ResourceCPU: resource.MustParse("2n"), }, }, }, } pod := &v1.Pod{ Spec: s, } corev1.SetObjectDefaults_Pod(pod) if expect := resource.MustParse("1m"); expect.Cmp(pod.Spec.Containers[0].Resources.Requests[v1.ResourceMemory]) != 0 { t.Errorf("did not round resources: %#v", pod.Spec.Containers[0].Resources) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 84.4K bytes - Viewed (0)