- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for Convert_v1_Pod_To_core_Pod (0.33 sec)
-
pkg/kubelet/config/file_linux_test.go
for _, pod := range update.Pods { // TODO: remove the conversion when validation is performed on versioned objects. internalPod := &api.Pod{} if err := k8s_api_v1.Convert_v1_Pod_To_core_Pod(pod, internalPod, nil); err != nil { t.Fatalf("%s: Cannot convert pod %#v, %#v", testCase.desc, pod, err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 14 09:38:23 UTC 2022 - 12.3K bytes - Viewed (0) -
pkg/apis/core/v1/conversion_test.go
for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if err := corev1.Convert_v1_Pod_To_core_Pod(tt.args.in, tt.args.out, nil); (err != nil) != tt.wantErr { t.Errorf("Convert_v1_Pod_To_core_Pod() error = %v, wantErr %v", err, tt.wantErr) } if diff := cmp.Diff(tt.args.out, tt.wantOut); diff != "" { t.Errorf("Convert_v1_Pod_To_core_Pod() mismatch (-want +got):\n%s", diff) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 10 05:34:15 UTC 2023 - 21.7K bytes - Viewed (0) -
pkg/apis/core/v1/helper/qos/qos_test.go
} // Convert v1.Pod to core.Pod, and then check against `core.helper.ComputePodQOS`. pod := core.Pod{} corev1.Convert_v1_Pod_To_core_Pod(testCase.pod, &pod, nil) if actual := qos.ComputePodQOS(&pod); core.PodQOSClass(testCase.expected) != actual {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 07 14:47:37 UTC 2023 - 6.2K bytes - Viewed (0) -
pkg/kubelet/config/http_test.go
} for _, pod := range update.Pods { // TODO: remove the conversion when validation is performed on versioned objects. internalPod := &api.Pod{} if err := k8s_api_v1.Convert_v1_Pod_To_core_Pod(pod, internalPod, nil); err != nil { t.Fatalf("%s: Cannot convert pod %#v, %#v", testCase.desc, pod, err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 14 09:38:23 UTC 2022 - 11.2K bytes - Viewed (0) -
plugin/pkg/admission/security/podsecurity/admission_test.go
data, err := ioutil.ReadFile("testdata/pod_restricted.yaml") if err != nil { b.Fatal(err) } if err := yaml.Unmarshal(data, v1Pod); err != nil { b.Fatal(err) } if err := v1.Convert_v1_Pod_To_core_Pod(v1Pod, corePod, nil); err != nil { b.Fatal(err) } appsDeployment := &apps.Deployment{ ObjectMeta: metav1.ObjectMeta{Name: "mydeployment"}, Spec: apps.DeploymentSpec{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 15 01:29:47 UTC 2022 - 10.7K bytes - Viewed (0) -
pkg/apis/core/v1/conversion.go
out.SecurityContext.HostIPC = in.HostIPC out.SecurityContext.ShareProcessNamespace = in.ShareProcessNamespace out.SecurityContext.HostUsers = in.HostUsers return nil } func Convert_v1_Pod_To_core_Pod(in *v1.Pod, out *core.Pod, s conversion.Scope) error { if err := autoConvert_v1_Pod_To_core_Pod(in, out, s); err != nil { return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 19 22:30:55 UTC 2024 - 19K bytes - Viewed (0) -
plugin/pkg/admission/serviceaccount/admission_test.go
}) 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/zz_generated.conversion.go
}); err != nil { return err } if err := s.AddConversionFunc((*v1.Pod)(nil), (*core.Pod)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_Pod_To_core_Pod(a.(*v1.Pod), b.(*core.Pod), scope) }); err != nil { return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 472.1K bytes - Viewed (0)