Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 106 for WithKind (0.13 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/scheme_test.go

    	s.AddKnownTypeWithName(externalGV.WithKind("TestType1"), &runtimetesting.ExternalTestType1{})
    	s.AddKnownTypeWithName(externalGV.WithKind("TestType2"), &runtimetesting.ExternalTestType2{})
    	s.AddKnownTypeWithName(internalGV.WithKind("TestType3"), &runtimetesting.TestType1{})
    	s.AddKnownTypeWithName(externalGV.WithKind("TestType3"), &runtimetesting.ExternalTestType1{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  2. 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)
  3. staging/src/k8s.io/apiserver/pkg/admission/conversion_test.go

    				VersionedOldObject: &examplev1.Pod{ObjectMeta: metav1.ObjectMeta{Name: "oldpodversioned"}},
    				VersionedKind:      examplev1.SchemeGroupVersion.WithKind("Pod"),
    				Dirty:              true,
    			},
    			GVK: examplev1.SchemeGroupVersion.WithKind("Pod"),
    			ExpectedAttrs: &VersionedAttributes{
    				Attributes: attrs(
    					&example.Pod{ObjectMeta: metav1.ObjectMeta{Name: "newpod"}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/codec_test.go

    	s.AddKnownTypeWithName(externalGV.WithKind("TestType1"), &runtimetesting.ExternalTestType1{})
    	s.AddKnownTypeWithName(externalGV.WithKind("TestType2"), &runtimetesting.ExternalTestType2{})
    	s.AddKnownTypeWithName(internalGV.WithKind("TestType3"), &runtimetesting.TestType1{})
    	s.AddKnownTypeWithName(externalGV.WithKind("TestType3"), &runtimetesting.ExternalTestType1{})
    	s.AddKnownTypeWithName(externalGV2.WithKind("TestType1"), &runtimetesting.ExternalTestType1{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/api/meta/restmapper_test.go

    		{Resource: schema.GroupVersionResource{Resource: "internalobject"}, ExpectedGVK: testGroupVersion.WithKind("InternalObject")},
    		{Resource: schema.GroupVersionResource{Resource: "internalobjects"}, ExpectedGVK: testGroupVersion.WithKind("InternalObject")},
    	}
    	for i, testCase := range testCases {
    		mapper := NewDefaultRESTMapper([]schema.GroupVersion{testGroupVersion})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Nov 01 08:38:57 UTC 2020
    - 28.9K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. staging/src/k8s.io/client-go/applyconfigurations/admissionregistration/v1alpha1/validatingadmissionpolicy.go

    	if err != nil {
    		return nil, err
    	}
    	b.WithName(validatingAdmissionPolicy.Name)
    
    	b.WithKind("ValidatingAdmissionPolicy")
    	b.WithAPIVersion("admissionregistration.k8s.io/v1alpha1")
    	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: Tue Mar 14 02:44:28 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/client-go/applyconfigurations/apps/v1/deployment.go

    	if err != nil {
    		return nil, err
    	}
    	b.WithName(deployment.Name)
    	b.WithNamespace(deployment.Namespace)
    
    	b.WithKind("Deployment")
    	b.WithAPIVersion("apps/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 23 17:59:55 UTC 2022
    - 12.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/client-go/applyconfigurations/batch/v1/cronjob.go

    	if err != nil {
    		return nil, err
    	}
    	b.WithName(cronJob.Name)
    	b.WithNamespace(cronJob.Namespace)
    
    	b.WithKind("CronJob")
    	b.WithAPIVersion("batch/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 23 17:59:55 UTC 2022
    - 11.9K bytes
    - Viewed (0)
Back to top