- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 48 for WithKind (0.14 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/utils.go
return &apiextensionsv1.CustomResourceDefinitionStatusApplyConfiguration{} case v1.SchemeGroupVersion.WithKind("CustomResourceDefinitionVersion"): return &apiextensionsv1.CustomResourceDefinitionVersionApplyConfiguration{} case v1.SchemeGroupVersion.WithKind("CustomResourceSubresources"): return &apiextensionsv1.CustomResourceSubresourcesApplyConfiguration{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 6.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/namespace/lifecycle/admission_test.go
} informerFactory.Start(wait.NeverStop) pod := newPod(namespace) err = handler.Admit(context.TODO(), admission.NewAttributesRecord(&pod, nil, v1.SchemeGroupVersion.WithKind("Pod").GroupKind().WithVersion("version"), pod.Namespace, pod.Name, v1.Resource("pods").WithVersion("version"), "", admission.Create, &metav1.CreateOptions{}, false, nil), nil) if err == nil { actions := ""
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 14.2K bytes - Viewed (0) -
pkg/apis/resource/v1alpha2/conversion.go
if err := scheme.AddFieldLabelConversionFunc(SchemeGroupVersion.WithKind("ResourceSlice"), func(label, value string) (string, string, error) { switch label { case "metadata.name", "nodeName", "driverName": return label, value, nil default: return "", "", fmt.Errorf("field label not supported for %s: %s", SchemeGroupVersion.WithKind("ResourceSlice"), label) } }); err != nil { return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 1.1K bytes - Viewed (0) -
staging/src/k8s.io/client-go/applyconfigurations/admissionregistration/v1/paramkind.go
b.APIVersion = &value return b } // WithKind sets the Kind field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Kind field is set to the value of the last call. func (b *ParamKindApplyConfiguration) WithKind(value string) *ParamKindApplyConfiguration { b.Kind = &value return b
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 1.9K bytes - Viewed (0) -
pkg/apis/core/v1/conversion.go
utilpointer "k8s.io/utils/pointer" ) func addConversionFuncs(scheme *runtime.Scheme) error { // Add field conversion funcs. err := scheme.AddFieldLabelConversionFunc(SchemeGroupVersion.WithKind("Pod"), func(label, value string) (string, string, error) { switch label { case "metadata.name", "metadata.namespace", "spec.nodeName", "spec.restartPolicy", "spec.schedulerName",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 19 22:30:55 UTC 2024 - 19K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_test_context.go
} fakeBindingGVR := schema.GroupVersionResource{ Group: "policy.example.com", Version: "v1", Resource: "fakebindings", } fakePolicyGVK := fakePolicyGVR.GroupVersion().WithKind("FakePolicy") fakeBindingGVK := fakeBindingGVR.GroupVersion().WithKind("FakeBinding") policySourceTestScheme, err := func() (*runtime.Scheme, error) { scheme := runtime.NewScheme() if err := fake.AddToScheme(scheme); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 19K bytes - Viewed (0) -
pkg/apis/storagemigration/register.go
// Kind takes an unqualified kind and returns a Group qualified GroupKind func Kind(kind string) schema.GroupKind { return SchemeGroupVersion.WithKind(kind).GroupKind() } // Resource takes an unqualified resource and returns a Group qualified GroupResource func Resource(resource string) schema.GroupResource {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 04:18:56 UTC 2024 - 1.6K bytes - Viewed (0) -
staging/src/k8s.io/client-go/applyconfigurations/admissionregistration/v1/validatingadmissionpolicy.go
if err != nil { return nil, err } b.WithName(validatingAdmissionPolicy.Name) b.WithKind("ValidatingAdmissionPolicy") b.WithAPIVersion("admissionregistration.k8s.io/v1") return b, nil } // WithKind sets the Kind field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 13.3K bytes - Viewed (0) -
staging/src/k8s.io/client-go/applyconfigurations/admissionregistration/v1/validatingadmissionpolicybinding.go
if err != nil { return nil, err } b.WithName(validatingAdmissionPolicyBinding.Name) b.WithKind("ValidatingAdmissionPolicyBinding") b.WithAPIVersion("admissionregistration.k8s.io/v1") return b, nil } // WithKind sets the Kind field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 13.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/installer.go
if err != nil { return nil, nil, err } versionedPatchOptions, err := a.group.Creater.New(optionsExternalVersion.WithKind("PatchOptions")) if err != nil { return nil, nil, err } versionedUpdateOptions, err := a.group.Creater.New(optionsExternalVersion.WithKind("UpdateOptions")) if err != nil { return nil, nil, err } var versionedDeleteOptions runtime.Object
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 18:15:22 UTC 2024 - 51.5K bytes - Viewed (0)