- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for parseGroupVersion (0.2 sec)
-
staging/src/k8s.io/apiserver/pkg/server/resourceconfig/helpers.go
continue } tokens := strings.Split(key, "/") if len(tokens) < 2 || len(tokens) > 3 { continue } groupVersionString := tokens[0] + "/" + tokens[1] groupVersion, err := schema.ParseGroupVersion(groupVersionString) if err != nil { return nil, fmt.Errorf("invalid key %s", key) } // Exclude group not registered into the registry. if !registry.IsGroupRegistered(groupVersion.Group) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 23 18:36:33 UTC 2022 - 7.8K bytes - Viewed (0) -
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) -
staging/src/k8s.io/apimachinery/pkg/runtime/schema/group_version.go
if gvk.Group == gv.Group { return gv.WithKind(gvk.Kind), true } } return GroupVersionKind{}, false } // ParseGroupVersion turns "group/version" string into a GroupVersion struct. It reports error // if it cannot parse the string. func ParseGroupVersion(gv string) (GroupVersion, error) { // this can be the internal version for the legacy kube types
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 30 09:08:59 UTC 2023 - 10.2K bytes - Viewed (0) -
pkg/apis/rbac/v1alpha1/conversion.go
out.APIGroup = GroupName case in.Kind == rbacv1alpha1.GroupKind: out.APIGroup = GroupName default: // For unrecognized kinds, use the group portion of the APIVersion if we can get it if gv, err := schema.ParseGroupVersion(in.APIVersion); err == nil { out.APIGroup = gv.Group } } // User * in v1alpha1 will only match all authenticated users // This is only for compatibility with old RBAC bindings
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 22 18:30:51 UTC 2017 - 2.8K bytes - Viewed (0) -
pkg/api/testing/conversion.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 07 07:01:25 UTC 2018 - 2.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/options/audit.go
} } return nil } var knownGroupVersions = []schema.GroupVersion{ auditv1.SchemeGroupVersion, } func validateGroupVersionString(groupVersion string) error { gv, err := schema.ParseGroupVersion(groupVersion) if err != nil { return err } if !knownGroupVersion(gv) { return fmt.Errorf("invalid group version, allowed versions are %q", knownGroupVersions) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 24 06:30:04 UTC 2022 - 20.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/yaml/meta.go
gvk := runtime.TypeMeta{} if err := yaml.Unmarshal(data, &gvk); err != nil { return nil, fmt.Errorf("could not interpret GroupVersionKind; unmarshal error: %v", err) } gv, err := schema.ParseGroupVersion(gvk.APIVersion) if err != nil { return nil, err } return &schema.GroupVersionKind{Group: gv.Group, Version: gv.Version, Kind: gvk.Kind}, nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 27 09:44:59 UTC 2019 - 1.8K bytes - Viewed (0) -
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) -
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) -
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)