Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 136 for GVK (0.06 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/compatibility.go

    	if len(c.Kinds) == 0 {
    		gvks := []schema.GroupVersionKind{}
    		for gvk := range c.Scheme.AllKnownTypes() {
    			if gvk.Version == "" || gvk.Version == runtime.APIVersionInternal {
    				// only test external types
    				continue
    			}
    			if strings.HasSuffix(gvk.Kind, "List") {
    				// omit list types
    				continue
    			}
    			if gvk.Group != "" && coreKinds.Has(gvk.Kind) {
    				// only test options types in the core API group
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 16:38:32 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  2. pilot/pkg/model/authentication_test.go

    					},
    				},
    				{
    					Meta: config.Meta{
    						GroupVersionKind: gvk.RequestAuthentication,
    						Name:             "with-targetref",
    						Namespace:        "foo",
    					},
    					Spec: &securityBeta.RequestAuthentication{
    						TargetRef: &selectorpb.PolicyTargetReference{
    							Group: gvk.KubernetesGateway.Group,
    							Kind:  gvk.KubernetesGateway.Kind,
    							Name:  "my-gateway",
    						},
    					},
    				},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 45.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/cli-runtime/pkg/resource/fallback_query_param_verifier_test.go

    			verifier := NewFallbackQueryParamVerifier(primary, secondary)
    			err := verifier.HasSupport(tc.gvk)
    			if tc.expectedSupports && err != nil {
    				t.Errorf("Expected supports, but returned err for GVK (%s)", tc.gvk)
    			} else if !tc.expectedSupports && err == nil {
    				t.Errorf("Expected not supports, but returned no err for GVK (%s)", tc.gvk)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 10 18:30:16 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/webhook_test.go

    	mapper.RegisterKindFor(gvr("apps", "v1", "deployments"), "scale", gvk("autoscaling", "v1", "Scale"))
    	mapper.RegisterKindFor(gvr("apps", "v1beta1", "deployments"), "scale", gvk("apps", "v1beta1", "Scale"))
    	mapper.RegisterKindFor(gvr("apps", "v1alpha1", "deployments"), "scale", gvk("apps", "v1alpha1", "Scale"))
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 28 19:30:04 UTC 2023
    - 32K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/json_test.go

    		}
    		obj, gvk, err := s.Decode([]byte(test.data), test.defaultGVK, test.into)
    
    		if !reflect.DeepEqual(test.expectedGVK, gvk) {
    			logTestCase(t, test)
    			t.Errorf("%d: unexpected GVK: %v", i, gvk)
    		}
    
    		switch {
    		case err == nil && test.errFn != nil:
    			logTestCase(t, test)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 04 15:55:02 UTC 2024
    - 40K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/cbor_test.go

    				}
    			},
    		},
    		{
    			name:        "error determining gvk",
    			metaFactory: stubMetaFactory{err: errors.New("test")},
    			assertOnError: func(t *testing.T, err error) {
    				if err == nil || err.Error() != "test" {
    					t.Errorf("expected error \"test\", got: %v", err)
    				}
    			},
    		},
    		{
    			name:        "typer does not recognize into",
    			gvk:         &schema.GroupVersionKind{Group: "x", Version: "y", Kind: "z"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 14:57:12 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/runtime/schema/group_version.go

    func (gvk GroupVersionKind) Empty() bool {
    	return len(gvk.Group) == 0 && len(gvk.Version) == 0 && len(gvk.Kind) == 0
    }
    
    func (gvk GroupVersionKind) GroupKind() GroupKind {
    	return GroupKind{Group: gvk.Group, Kind: gvk.Kind}
    }
    
    func (gvk GroupVersionKind) GroupVersion() GroupVersion {
    	return GroupVersion{Group: gvk.Group, Version: gvk.Version}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 30 09:08:59 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  8. pkg/api/testing/unstructured_test.go

    	}
    
    	var buf bytes.Buffer
    	for gvk := range legacyscheme.Scheme.AllKnownTypes() {
    		if nonRoundTrippableTypes.Has(gvk.Kind) {
    			continue
    		}
    		if gvk.Version == runtime.APIVersionInternal {
    			continue
    		}
    
    		subtestName := fmt.Sprintf("%s.%s/%s", gvk.Version, gvk.Group, gvk.Kind)
    		if gvk.Group == "" {
    			subtestName = fmt.Sprintf("%s/%s", gvk.Version, gvk.Kind)
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/matching/matching_test.go

    	mapper.RegisterKindFor(gvr("apps", "v1", "deployments"), "scale", gvk("autoscaling", "v1", "Scale"))
    	mapper.RegisterKindFor(gvr("apps", "v1beta1", "deployments"), "scale", gvk("apps", "v1beta1", "Scale"))
    	mapper.RegisterKindFor(gvr("apps", "v1alpha1", "deployments"), "scale", gvk("apps", "v1alpha1", "Scale"))
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning_unstructured_test.go

    	"k8s.io/apimachinery/pkg/runtime/schema"
    )
    
    func buildUnstructuredDecodable(gvk schema.GroupVersionKind) runtime.Object {
    	obj := &unstructured.Unstructured{}
    	obj.SetGroupVersionKind(gvk)
    	return obj
    }
    
    func buildUnstructuredListDecodable(gvk schema.GroupVersionKind) runtime.Object {
    	obj := &unstructured.UnstructuredList{}
    	obj.SetGroupVersionKind(gvk)
    	return obj
    }
    
    func TestEncodeUnstructured(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 08 14:55:24 UTC 2018
    - 10.9K bytes
    - Viewed (0)
Back to top