- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for objectToPod (0.32 sec)
-
pkg/kube/inject/inject_test.go
inputRaw, err := FromRawToObject(inputYAML) if err != nil { t.Fatal(err) } inputPod := objectToPod(t, inputRaw) // Convert the wanted YAML to a deployment. wantRaw, err := FromRawToObject(wantYAML) if err != nil { t.Fatal(err) } wantPod := objectToPod(t, wantRaw) // Generate the patch. At runtime, the webhook would actually generate the patch against the
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 20:35:11 UTC 2024 - 34.1K bytes - Viewed (0) -
pkg/kube/inject/webhook_test.go
m.OwnerReferences = []metav1.OwnerReference{{ APIVersion: gvk.GroupVersion().String(), Kind: gvk.Kind, Name: name, Controller: &controller, }} return m } func objectToPod(t testing.TB, obj runtime.Object) *corev1.Pod { gvk := obj.GetObjectKind().GroupVersionKind() defaultConversion := func(template corev1.PodTemplateSpec, name string) *corev1.Pod {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 17 20:25:52 UTC 2023 - 39K bytes - Viewed (1)