Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 136 for GVK (0.02 sec)

  1. 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)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/scheme.go

    	for _, obj := range types {
    		t := reflect.TypeOf(obj).Elem()
    		gvk := version.WithKind(t.Name())
    		s.unversionedTypes[t] = gvk
    		if old, ok := s.unversionedKinds[gvk.Kind]; ok && t != old {
    			panic(fmt.Sprintf("%v.%v has already been registered as unversioned kind %q - kind name must be unique in scheme %q", old.PkgPath(), old.Name(), gvk, s.schemeName))
    		}
    		s.unversionedKinds[gvk.Kind] = t
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 25.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/roundtrip.go

    	kinds := scheme.AllKnownTypes()
    	for gvk := range kinds {
    		if gvk.Version == runtime.APIVersionInternal || globalNonRoundTrippableTypes.Has(gvk.Kind) {
    			continue
    		}
    		t.Run(gvk.Group+"."+gvk.Version+"."+gvk.Kind, func(t *testing.T) {
    			roundTripSpecificKind(t, gvk, scheme, codecFactory, fuzzer, nonRoundTrippableTypes, false)
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/conversion_test.go

    				},
    			},
    		},
    		"no conversion for Unstructured object whose gvk matches the desired gvk": {
    			obj: &unstructured.Unstructured{
    				Object: map[string]interface{}{
    					"apiVersion": "mygroup.k8s.io/v1",
    					"kind":       "Flunder",
    					"data": map[string]interface{}{
    						"Key": "Value",
    					},
    				},
    			},
    			gvk: schema.GroupVersionKind{Group: "mygroup.k8s.io", Version: "v1", Kind: "Flunder"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  5. pilot/pkg/config/kube/gateway/controller.go

    	}()
    	gatewayClass := c.cache.List(gvk.GatewayClass, metav1.NamespaceAll)
    	gateway := c.cache.List(gvk.KubernetesGateway, metav1.NamespaceAll)
    	httpRoute := c.cache.List(gvk.HTTPRoute, metav1.NamespaceAll)
    	grpcRoute := c.cache.List(gvk.GRPCRoute, metav1.NamespaceAll)
    	tcpRoute := c.cache.List(gvk.TCPRoute, metav1.NamespaceAll)
    	tlsRoute := c.cache.List(gvk.TLSRoute, metav1.NamespaceAll)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 05:26:03 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning_test.go

    )
    
    type testDecodable struct {
    	Other string
    	Value int `json:"value"`
    	gvk   schema.GroupVersionKind
    }
    
    func (d *testDecodable) GetObjectKind() schema.ObjectKind                { return d }
    func (d *testDecodable) SetGroupVersionKind(gvk schema.GroupVersionKind) { d.gvk = gvk }
    func (d *testDecodable) GroupVersionKind() schema.GroupVersionKind       { return d.gvk }
    func (d *testDecodable) DeepCopyObject() runtime.Object {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 23 17:04:19 UTC 2022
    - 12.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/typechecking.go

    	object *apiservercel.DeclType
    	params *apiservercel.DeclType
    }
    
    // TypeCheckingResult holds the issues found during type checking, any returned
    // error, and the gvk that the type checking is performed against.
    type TypeCheckingResult struct {
    	// GVK is the associated GVK
    	GVK schema.GroupVersionKind
    	// Issues contain machine-readable information about the typechecking result.
    	Issues error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/runtime/codec.go

    	}
    	return string(bytes)
    }
    
    // UseOrCreateObject returns obj if the canonical ObjectKind returned by the provided typer matches gvk, or
    // invokes the ObjectCreator to instantiate a new gvk. Returns an error if the typer cannot find the object.
    func UseOrCreateObject(t ObjectTyper, c ObjectCreater, gvk schema.GroupVersionKind, obj Object) (Object, error) {
    	if obj != nil {
    		kinds, _, err := t.ObjectKinds(obj)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 03:20:30 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/serviceentry/conversion_test.go

    	"istio.io/istio/pkg/config/mesh"
    	"istio.io/istio/pkg/config/protocol"
    	"istio.io/istio/pkg/config/schema/gvk"
    	"istio.io/istio/pkg/network"
    	"istio.io/istio/pkg/spiffe"
    	"istio.io/istio/pkg/test"
    )
    
    var (
    	GlobalTime = time.Now()
    	httpNone   = &config.Config{
    		Meta: config.Meta{
    			GroupVersionKind:  gvk.ServiceEntry,
    			Name:              "httpNone",
    			Namespace:         "httpNone",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 39K bytes
    - Viewed (0)
  10. pilot/pkg/xds/endpoints/ep_filters_test.go

    	Config         config.Config
    	Configs        []config.Config
    	IsMtlsDisabled bool
    	SubsetName     string
    }{
    	gvk.PeerAuthentication.String(): {
    		"mtls-off-ineffective": {
    			Config: config.Config{
    				Meta: config.Meta{
    					GroupVersionKind: gvk.PeerAuthentication,
    					Name:             "mtls-partial",
    					Namespace:        "istio-system",
    				},
    				Spec: &security.PeerAuthentication{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 26.8K bytes
    - Viewed (0)
Back to top