Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ForKind (0.06 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/applyconfiguration/utils.go

    	schema "k8s.io/apimachinery/pkg/runtime/schema"
    )
    
    // ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no
    // apply configuration type exists for the given GroupVersionKind.
    func ForKind(kind schema.GroupVersionKind) interface{} {
    	switch kind {
    	// Group=cr.example.apiextensions.k8s.io, Version=v1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 10 10:01:37 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. pkg/api/testing/applyconfiguration_test.go

    			continue
    		}
    		if gvk.Version == runtime.APIVersionInternal {
    			continue
    		}
    		if builder := applyconfigurations.ForKind(gvk); builder == nil {
    			continue
    		}
    
    		t.Run(gvk.String(), func(t *testing.T) {
    			for i := 0; i < 3; i++ {
    				item := fuzzObject(t, gvk)
    				builder := applyconfigurations.ForKind(gvk)
    				unstructuredRoundTripApplyConfiguration(t, item, builder)
    				if t.Failed() {
    					break
    				}
    			}
    		})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 05 20:12:50 UTC 2022
    - 7.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/utils.go

    	schema "k8s.io/apimachinery/pkg/runtime/schema"
    )
    
    // ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no
    // apply configuration type exists for the given GroupVersionKind.
    func ForKind(kind schema.GroupVersionKind) interface{} {
    	switch kind {
    	// Group=apiextensions.k8s.io, Version=v1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top