Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for WithKind (0.24 sec)

  1. 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)
  2. 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)
  3. 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)
  4. staging/src/k8s.io/client-go/applyconfigurations/admissionregistration/v1beta1/validatingadmissionpolicy.go

    	if err != nil {
    		return nil, err
    	}
    	b.WithName(validatingAdmissionPolicy.Name)
    
    	b.WithKind("ValidatingAdmissionPolicy")
    	b.WithAPIVersion("admissionregistration.k8s.io/v1beta1")
    	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: Fri Jul 21 20:56:23 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  5. 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)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1beta1/customresourcedefinition.go

    func CustomResourceDefinition(name string) *CustomResourceDefinitionApplyConfiguration {
    	b := &CustomResourceDefinitionApplyConfiguration{}
    	b.WithName(name)
    	b.WithKind("CustomResourceDefinition")
    	b.WithAPIVersion("apiextensions.k8s.io/v1beta1")
    	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.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 28 12:38:10 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  7. 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)
  8. staging/src/k8s.io/client-go/applyconfigurations/admissionregistration/v1beta1/validatingadmissionpolicybinding.go

    	if err != nil {
    		return nil, err
    	}
    	b.WithName(validatingAdmissionPolicyBinding.Name)
    
    	b.WithKind("ValidatingAdmissionPolicyBinding")
    	b.WithAPIVersion("admissionregistration.k8s.io/v1beta1")
    	return b, nil
    }
    
    // WithKind sets the Kind field in the declarative configuration to the given value
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 20:56:23 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1/customresourcedefinition.go

    // apply.
    func CustomResourceDefinition(name string) *CustomResourceDefinitionApplyConfiguration {
    	b := &CustomResourceDefinitionApplyConfiguration{}
    	b.WithName(name)
    	b.WithKind("CustomResourceDefinition")
    	b.WithAPIVersion("apiextensions.k8s.io/v1")
    	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.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 28 12:38:10 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/response.go

    			}
    			// TODO: turn this into an internal type and do conversion in order to get object kind automatically set?
    			partial := meta.AsPartialObjectMetadata(m)
    			partial.GetObjectKind().SetGroupVersionKind(groupVersion.WithKind("PartialObjectMetadata"))
    			item.Object.Object = partial
    		case metav1.IncludeNone:
    			item.Object.Object = nil
    		default:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 09:07:03 UTC 2023
    - 16.5K bytes
    - Viewed (0)
Back to top