Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 136 for GVK (0.81 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/meta/restmapper.go

    	}
    
    	for _, gvk := range potentialGVK {
    		//Ensure we have a REST mapping
    		res, ok := m.kindToPluralResource[gvk]
    		if !ok {
    			continue
    		}
    
    		// Ensure we have a REST scope
    		scope, ok := m.kindToScope[gvk]
    		if !ok {
    			return nil, fmt.Errorf("the provided version %q and kind %q cannot be mapped to a supported scope", gvk.GroupVersion(), gvk.Kind)
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 17 01:55:47 UTC 2021
    - 16.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured.go

    }
    
    func (u *Unstructured) SetGroupVersionKind(gvk schema.GroupVersionKind) {
    	u.SetAPIVersion(gvk.GroupVersion().String())
    	u.SetKind(gvk.Kind)
    }
    
    func (u *Unstructured) GroupVersionKind() schema.GroupVersionKind {
    	gv, err := schema.ParseGroupVersion(u.GetAPIVersion())
    	if err != nil {
    		return schema.GroupVersionKind{}
    	}
    	gvk := gv.WithKind(u.GetKind())
    	return gvk
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 28 03:26:35 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  3. pilot/pkg/networking/grpcgen/grpcgen_test.go

    			Meta: config.Meta{
    				GroupVersionKind: gvk.PeerAuthentication,
    				Name:             svcname,
    				Namespace:        "test",
    			},
    			Spec: &security.PeerAuthentication{
    				Mtls: &security.PeerAuthentication_MutualTLS{Mode: security.PeerAuthentication_MutualTLS_STRICT},
    			},
    		})
    
    		_, _ = store.Create(config.Config{
    			Meta: config.Meta{
    				GroupVersionKind: gvk.AuthorizationPolicy,
    				Name:             svcname,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 09:04:02 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  4. pkg/config/schema/gvk/resources.gen.go

    }
    
    // MustToGVR converts a GVK to a GVR, and panics if it cannot be converted
    // Warning: this is only safe for known types; do not call on arbitrary GVKs
    func MustToGVR(g config.GroupVersionKind) schema.GroupVersionResource {
    	r, ok := ToGVR(g)
    	if !ok {
    		panic("unknown kind: " + g.String())
    	}
    	return r
    }
    
    // FromGVR converts a GVR to a GVK.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 17:37:32 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_test_context.go

    	if nonNilObject == nil {
    		nonNilObject = old
    	}
    
    	gvk, gvr, err := p.inferGVK(nonNilObject)
    	if err != nil {
    		return err
    	}
    
    	nonNilMeta, err := meta.Accessor(nonNilObject)
    	if err != nil {
    		return err
    	}
    
    	return p.Plugin.Dispatch(
    		p,
    		admission.NewAttributesRecord(
    			new,
    			old,
    			gvk,
    			nonNilMeta.GetName(),
    			nonNilMeta.GetNamespace(),
    			gvr,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/delete.go

    				// It is also allowed to pass a body with meta.k8s.io/v1.DeleteOptions
    				defaultGVK := scope.MetaGroupVersion.WithKind("DeleteOptions")
    				obj, gvk, err := metainternalversionscheme.Codecs.DecoderToVersion(s.Serializer, defaultGVK.GroupVersion()).Decode(body, &defaultGVK, options)
    				if err != nil {
    					scope.err(err, w, req)
    					return
    				}
    				if obj != options {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 10:00:32 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/networkfilter_test.go

    	xdsfilters "istio.io/istio/pilot/pkg/xds/filters"
    	"istio.io/istio/pilot/test/xdstest"
    	"istio.io/istio/pkg/config"
    	"istio.io/istio/pkg/config/mesh"
    	"istio.io/istio/pkg/config/protocol"
    	"istio.io/istio/pkg/config/schema/gvk"
    	"istio.io/istio/pkg/wellknown"
    )
    
    func TestBuildRedisFilter(t *testing.T) {
    	redisFilter := buildRedisFilter("redis", "redis-cluster")
    	if redisFilter.Name != wellknown.RedisProxy {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  8. pilot/pkg/config/kube/ingress/controller_test.go

    	"istio.io/istio/pilot/pkg/model"
    	kubecontroller "istio.io/istio/pilot/pkg/serviceregistry/kube/controller"
    	"istio.io/istio/pkg/config"
    	"istio.io/istio/pkg/config/mesh"
    	"istio.io/istio/pkg/config/schema/gvk"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/kube/kclient/clienttest"
    	"istio.io/istio/pkg/util/sets"
    )
    
    func newFakeController() (model.ConfigStoreController, kube.Client) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 18:34:32 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  9. pkg/config/model.go

    	if g.Group == "" {
    		return g.Version
    	}
    	return g.Group + "/" + g.Version
    }
    
    func FromKubernetesGVK(gvk schema.GroupVersionKind) GroupVersionKind {
    	return GroupVersionKind{
    		Group:   gvk.Group,
    		Version: gvk.Version,
    		Kind:    gvk.Kind,
    	}
    }
    
    // Kubernetes returns the same GVK, using the Kubernetes object type
    func (g GroupVersionKind) Kubernetes() schema.GroupVersionKind {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/dispatcher.go

    			namespaceName := a.GetNamespace()
    
    			// Special case, the namespace object has the namespace of itself (maybe a bug).
    			// unset it if the incoming object is a namespace
    			if gvk := a.GetKind(); gvk.Kind == "Namespace" && gvk.Version == "v1" && gvk.Group == "" {
    				namespaceName = ""
    			}
    
    			// if it is cluster scoped, namespaceName will be empty
    			// Otherwise, get the Namespace resource.
    			if namespaceName != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top