Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. pkg/config/analysis/analyzers/k8sgateway/workloadselector.go

    	"istio.io/istio/pkg/config/resource"
    	"istio.io/istio/pkg/config/schema/gvk"
    	"istio.io/istio/pkg/maps"
    )
    
    var _ analysis.Analyzer = &SelectorAnalyzer{}
    
    type SelectorAnalyzer struct{}
    
    var policyGVKs = []config.GroupVersionKind{
    	gvk.AuthorizationPolicy,
    	gvk.RequestAuthentication,
    	gvk.Telemetry,
    	gvk.WasmPlugin,
    }
    
    type policy interface {
    	GetSelector() *typev1beta1.WorkloadSelector
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 15 01:19:33 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/openapi/resolver/combined.go

    }
    
    // ResolveSchema takes a GroupVersionKind (GVK) and returns the OpenAPI schema
    // identified by the GVK.
    // If the DefinitionsSchemaResolver knows the gvk, the DefinitionsSchemaResolver handles the resolution,
    // otherwise, the secondary does.
    func (r *combinedSchemaResolver) ResolveSchema(gvk schema.GroupVersionKind) (*spec.Schema, error) {
    	if _, ok := r.definitions.gvkToRef[gvk]; ok {
    		return r.definitions.ResolveSchema(gvk)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 17:23:50 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. 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)
  4. staging/src/k8s.io/apiserver/pkg/cel/openapi/resolver/discovery.go

    func (r *ClientDiscoveryResolver) ResolveSchema(gvk schema.GroupVersionKind) (*spec.Schema, error) {
    	p, err := r.Discovery.OpenAPIV3().Paths()
    	if err != nil {
    		return nil, err
    	}
    	resourcePath := resourcePathFromGV(gvk.GroupVersion())
    	c, ok := p[resourcePath]
    	if !ok {
    		return nil, fmt.Errorf("cannot resolve group version %q: %w", gvk.GroupVersion(), ErrSchemaNotFound)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 17:23:50 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  5. 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)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/negotiation.go

    // IsAggregatedDiscoveryGVK checks if a provided GVK is the GVK for serving aggregated discovery.
    func IsAggregatedDiscoveryGVK(gvk *schema.GroupVersionKind) bool {
    	if gvk != nil {
    		return gvk.Group == "apidiscovery.k8s.io" && (gvk.Version == "v2beta1" || gvk.Version == "v2") && gvk.Kind == "APIGroupDiscoveryList"
    	}
    	return false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. pkg/config/schema/codegen/templates/crdclient.go.tmpl

    	if orig.GroupVersionKind != mod.GroupVersionKind {
    		return nil, fmt.Errorf("gvk mismatch: %v, modified: %v", orig.GroupVersionKind, mod.GroupVersionKind)
    	}
    	switch orig.GroupVersionKind {
    {{- range .Entries }}
    	{{- if and (not .Resource.Synthetic) (not .Resource.Builtin) }}
    	case gvk.{{.Resource.Identifier}}:
    		oldRes := &{{ .IstioAwareClientImport }}.{{ .Resource.Kind }}{
    				ObjectMeta: origMeta,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 13:57:51 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. pkg/registry/core/serviceaccount/storage/token.go

    		switch {
    		case gvk.Group == "" && gvk.Kind == "Pod":
    			newCtx := newContext(ctx, "pods", ref.Name, namespace, gvk)
    			podObj, err := r.pods.Get(newCtx, ref.Name, &metav1.GetOptions{})
    			if err != nil {
    				return nil, err
    			}
    			pod = podObj.(*api.Pod)
    			if name != pod.Spec.ServiceAccountName {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 05 10:24:31 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. pilot/pkg/config/aggregate/config_test.go

    	if _, err := store.Create(config.Config{
    		Meta: config.Meta{
    			GroupVersionKind: gvk.HTTPRoute,
    			Name:             "other",
    		},
    	}); err != nil {
    		t.Fatal(err)
    	}
    
    	la := store.List(gvk.HTTPRoute, "")
    	g.Expect(la).To(HaveLen(1))
    	g.Expect(la[0].Name).To(Equal("other"))
    
    	l := store1.List(gvk.HTTPRoute, "")
    	g.Expect(l).To(HaveLen(1))
    	g.Expect(l[0].Name).To(Equal("other"))
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 17:36:47 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  10. pkg/config/analysis/analyzers/maturity/maturity.go

    func (fa *AlphaAnalyzer) Analyze(ctx analysis.Context) {
    	ctx.ForEach(gvk.Namespace, func(r *resource.Instance) bool {
    		fa.allowAnnotations(r, ctx, gvk.Namespace)
    		return true
    	})
    	ctx.ForEach(gvk.Service, func(r *resource.Instance) bool {
    		fa.allowAnnotations(r, ctx, gvk.Service)
    		return true
    	})
    	ctx.ForEach(gvk.Pod, func(r *resource.Instance) bool {
    		fa.allowAnnotations(r, ctx, gvk.Pod)
    		return true
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top