Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 177 for WithKind (0.26 sec)

  1. staging/src/k8s.io/client-go/applyconfigurations/coordination/v1/lease.go

    	if err != nil {
    		return nil, err
    	}
    	b.WithName(lease.Name)
    	b.WithNamespace(lease.Namespace)
    
    	b.WithKind("Lease")
    	b.WithAPIVersion("coordination.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 23 17:59:55 UTC 2022
    - 11.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/response_test.go

    }
    
    func (e *mockEncoder) Identifier() runtime.Identifier {
    	return runtime.Identifier("")
    }
    
    func TestCacheableObject(t *testing.T) {
    	pomGVK := metav1.SchemeGroupVersion.WithKind("PartialObjectMetadata")
    	tableGVK := metav1.SchemeGroupVersion.WithKind("Table")
    
    	status := &metav1.Status{Status: "status"}
    	pod := &examplev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "name",
    			Namespace: "namespace",
    		},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 09:07:03 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  3. pkg/apis/admissionregistration/register.go

    // Kind takes an unqualified kind and returns back a Group qualified GroupKind
    func Kind(kind string) schema.GroupKind {
    	return SchemeGroupVersion.WithKind(kind).GroupKind()
    }
    
    // Resource takes an unqualified resource and returns back a Group qualified GroupResource
    func Resource(resource string) schema.GroupResource {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 20:51:51 UTC 2022
    - 2K bytes
    - Viewed (0)
  4. pkg/apis/certificates/v1alpha1/conversion.go

    */
    
    package v1alpha1
    
    import (
    	"fmt"
    
    	"k8s.io/apimachinery/pkg/runtime"
    )
    
    func addConversionFuncs(scheme *runtime.Scheme) error {
    	return scheme.AddFieldLabelConversionFunc(
    		SchemeGroupVersion.WithKind("ClusterTrustBundle"),
    		func(label, value string) (string, string, error) {
    			switch label {
    			case "metadata.name", "spec.signerName":
    				return label, value, nil
    			default:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 16 03:10:18 UTC 2023
    - 1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/namespace/lifecycle/admission.go

    		return errors.NewForbidden(a.GetResource().GroupResource(), a.GetName(), fmt.Errorf("this namespace may not be deleted"))
    	}
    
    	// always allow non-namespaced resources
    	if len(a.GetNamespace()) == 0 && a.GetKind().GroupKind() != v1.SchemeGroupVersion.WithKind("Namespace").GroupKind() {
    		return nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 15 09:52:18 UTC 2021
    - 8.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/applyconfiguration/cr/v1/example.go

    // apply.
    func Example(name, namespace string) *ExampleApplyConfiguration {
    	b := &ExampleApplyConfiguration{}
    	b.WithName(name)
    	b.WithNamespace(namespace)
    	b.WithKind("Example")
    	b.WithAPIVersion("cr.example.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: Fri Feb 10 10:01:37 UTC 2023
    - 10K bytes
    - Viewed (0)
  7. 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)
  8. pkg/registry/apps/replicaset/storage/storage.go

    	case extensionsv1beta1.SchemeGroupVersion:
    		return extensionsv1beta1.SchemeGroupVersion.WithKind("Scale")
    	case appsv1beta1.SchemeGroupVersion:
    		return appsv1beta1.SchemeGroupVersion.WithKind("Scale")
    	case appsv1beta2.SchemeGroupVersion:
    		return appsv1beta2.SchemeGroupVersion.WithKind("Scale")
    	default:
    		return autoscalingv1.SchemeGroupVersion.WithKind("Scale")
    	}
    }
    
    // New creates a new Scale object
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/client-go/applyconfigurations/autoscaling/v2beta1/horizontalpodautoscaler.go

    	if err != nil {
    		return nil, err
    	}
    	b.WithName(horizontalPodAutoscaler.Name)
    	b.WithNamespace(horizontalPodAutoscaler.Namespace)
    
    	b.WithKind("HorizontalPodAutoscaler")
    	b.WithAPIVersion("autoscaling/v2beta1")
    	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
    - 13.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/client-go/applyconfigurations/coordination/v1beta1/lease.go

    	if err != nil {
    		return nil, err
    	}
    	b.WithName(lease.Name)
    	b.WithNamespace(lease.Namespace)
    
    	b.WithKind("Lease")
    	b.WithAPIVersion("coordination.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: Wed Mar 23 17:59:55 UTC 2022
    - 11.4K bytes
    - Viewed (0)
Back to top