Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ParseGroupVersion (0.44 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/converter_test.go

    				Conversion: &apiextensionsv1.CustomResourceConversion{
    					Strategy: apiextensionsv1.NoneConverter,
    				},
    			},
    		}
    		for _, v := range test.ValidVersions {
    			gv, _ := schema.ParseGroupVersion(v)
    			testCRD.Spec.Versions = append(testCRD.Spec.Versions, apiextensionsv1.CustomResourceDefinitionVersion{Name: gv.Version, Served: true})
    			testCRD.Spec.Group = gv.Group
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 13 15:27:39 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  2. pkg/registry/admissionregistration/validatingadmissionpolicy/authz.go

    	}
    
    	paramKind := policy.Spec.ParamKind
    	// default to requiring permissions on all group/version/resources
    	resource, apiGroup, apiVersion := "*", "*", "*"
    	if gv, err := schema.ParseGroupVersion(paramKind.APIVersion); err == nil {
    		// we only need to authorize the parsed group/version
    		apiGroup = gv.Group
    		apiVersion = gv.Version
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 21:29:56 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/versionconverter.go

    	objectToConvert, err := v.typeConverter.TypedToObject(object)
    	if err != nil {
    		return object, err
    	}
    
    	// Parse the target groupVersion.
    	groupVersion, err := schema.ParseGroupVersion(string(version))
    	if err != nil {
    		return object, err
    	}
    
    	// If attempting to convert to the same version as we already have, just return it.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. pkg/kube/controllers/common.go

    // clients.
    func UnstructuredToGVR(u unstructured.Unstructured) (schema.GroupVersionResource, error) {
    	res := schema.GroupVersionResource{}
    	gv, err := schema.ParseGroupVersion(u.GetAPIVersion())
    	if err != nil {
    		return res, err
    	}
    
    	gk := config.GroupVersionKind{
    		Group:   gv.Group,
    		Version: gv.Version,
    		Kind:    u.GetKind(),
    	}
    	found, ok := gvk.ToGVR(gk)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 08:27:29 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. pkg/registry/admissionregistration/validatingadmissionpolicybinding/authz.go

    	if policy, err := v.policyGetter.GetValidatingAdmissionPolicy(ctx, binding.Spec.PolicyName); err == nil && policy.Spec.ParamKind != nil {
    		paramKind := policy.Spec.ParamKind
    		if gv, err := schema.ParseGroupVersion(paramKind.APIVersion); err == nil {
    			// we only need to authorize the parsed group/version
    			apiGroup = gv.Group
    			apiVersion = gv.Version
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 12:19:03 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  6. pkg/controller/garbagecollector/dump.go

    		{Key: "virtual", Value: fmt.Sprintf(`%v`, v.virtual)},
    	}
    }
    
    // NewDOTVertex creates a new dotVertex.
    func NewDOTVertex(node *node) *dotVertex {
    	gv, err := schema.ParseGroupVersion(node.identity.APIVersion)
    	if err != nil {
    		// this indicates a bad data serialization that should be prevented during storage of the API
    		utilruntime.HandleError(err)
    	}
    	return &dotVertex{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 23 17:12:33 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_list.go

    	u.SetAPIVersion(gvk.GroupVersion().String())
    	u.SetKind(gvk.Kind)
    }
    
    func (u *UnstructuredList) 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 04:46:35 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  8. pkg/kubectl/cmd/convert/convert.go

    	}
    
    	if len(infos) == 0 {
    		return fmt.Errorf("no objects passed to convert")
    	}
    
    	var specifiedOutputVersion schema.GroupVersion
    	if len(o.OutputVersion) > 0 {
    		specifiedOutputVersion, err = schema.ParseGroupVersion(o.OutputVersion)
    		if err != nil {
    			return err
    		}
    	}
    
    	internalEncoder := scheme.Codecs.LegacyCodec(scheme.Scheme.PrioritizedVersionsAllGroups()...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 03:21:17 UTC 2023
    - 9.6K bytes
    - Viewed (0)
Back to top