Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 235 for WithKind (0.11 sec)

  1. staging/src/k8s.io/client-go/applyconfigurations/admissionregistration/v1beta1/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: Fri Jul 21 20:56:23 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. 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)
  3. staging/src/k8s.io/client-go/applyconfigurations/autoscaling/v2beta1/crossversionobjectreference.go

    	return &CrossVersionObjectReferenceApplyConfiguration{}
    }
    
    // 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 *CrossVersionObjectReferenceApplyConfiguration) WithKind(value string) *CrossVersionObjectReferenceApplyConfiguration {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  4. pkg/kubelet/util/nodelease.go

    				lease.OwnerReferences = []metav1.OwnerReference{
    					{
    						APIVersion: corev1.SchemeGroupVersion.WithKind("Node").Version,
    						Kind:       corev1.SchemeGroupVersion.WithKind("Node").Kind,
    						Name:       nodeName,
    						UID:        node.UID,
    					},
    				}
    			} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 07 15:47:46 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/register.go

    func AddToGroupVersion(scheme *runtime.Scheme, groupVersion schema.GroupVersion) {
    	scheme.AddKnownTypeWithName(groupVersion.WithKind(WatchEventKind), &WatchEvent{})
    	scheme.AddKnownTypeWithName(
    		schema.GroupVersion{Group: groupVersion.Group, Version: runtime.APIVersionInternal}.WithKind(WatchEventKind),
    		&InternalEvent{},
    	)
    	// Supports legacy code paths, most callers should use metav1.ParameterCodec for now
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 22 18:47:31 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/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: Tue Nov 12 14:56:58 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/apis/meta/internalversion/scheme/register_test.go

    	if gvks, unversioned, err := scheme.ObjectKinds(in); err != nil || unversioned || gvks[0] != metav1.SchemeGroupVersion.WithKind("ListOptions") {
    		t.Errorf("unexpected: %v %v %v", gvks[0], unversioned, err)
    	}
    	if gvks, unversioned, err := scheme.ObjectKinds(out); err != nil || unversioned || gvks[0] != metainternalversion.SchemeGroupVersion.WithKind("ListOptions") {
    		t.Errorf("unexpected: %v %v %v", gvks[0], unversioned, err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/api/meta/testrestmapper/test_restmapper.go

    		for kind := range scheme.KnownTypes(gv) {
    			if ignoredKinds.Has(kind) {
    				continue
    			}
    			scope := meta.RESTScopeNamespace
    			if rootScopedKinds[gv.WithKind(kind).GroupKind()] {
    				scope = meta.RESTScopeRoot
    			}
    			mapper.Add(gv.WithKind(kind), scope)
    		}
    	}
    
    	return mapper
    }
    
    // hardcoded is good enough for the test we're running
    var rootScopedKinds = map[schema.GroupKind]bool{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 06 09:07:02 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/client-go/applyconfigurations/autoscaling/v1/crossversionobjectreference.go

    	return &CrossVersionObjectReferenceApplyConfiguration{}
    }
    
    // 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 *CrossVersionObjectReferenceApplyConfiguration) WithKind(value string) *CrossVersionObjectReferenceApplyConfiguration {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/client-go/applyconfigurations/autoscaling/v2beta2/crossversionobjectreference.go

    	return &CrossVersionObjectReferenceApplyConfiguration{}
    }
    
    // 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 *CrossVersionObjectReferenceApplyConfiguration) WithKind(value string) *CrossVersionObjectReferenceApplyConfiguration {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 2.5K bytes
    - Viewed (0)
Back to top