- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 137 for GV (0.04 sec)
-
staging/src/k8s.io/apimachinery/pkg/runtime/schema/group_version.go
// Empty returns true if group and version are empty func (gv GroupVersion) Empty() bool { return len(gv.Group) == 0 && len(gv.Version) == 0 } // String puts "group" and "version" into a single "group/version" string. For the legacy v1 // it returns "v1". func (gv GroupVersion) String() string { if len(gv.Group) > 0 { return gv.Group + "/" + gv.Version } return gv.Version }
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/api/testing/meta_test.go
func TestAccessorImplementations(t *testing.T) { for _, gv := range legacyscheme.Scheme.PrioritizedVersionsAllGroups() { internalGV := schema.GroupVersion{Group: gv.Group, Version: runtime.APIVersionInternal} for _, gv := range []schema.GroupVersion{gv, internalGV} { for kind, knownType := range legacyscheme.Scheme.KnownTypes(gv) { value := reflect.New(knownType) obj := value.Interface()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 14 10:11:56 UTC 2022 - 3.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapiv3/controller.go
} oldSpec, ok := c.specsByGVandName[gv][name] if ok { if reflect.DeepEqual(oldSpec, v3) { // no changes to CRD return nil } } c.specsByGVandName[gv][name] = v3 regenerationCounter.With(map[string]string{"crd": name, "group": gv.Group, "version": gv.Version, "reason": reason}) return c.updateGroupVersion(gv) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 7.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/handler.go
priorities := map[string]int{} for gv, info := range rdm.versionPriorities { if source := sourcesUsed[gv.GroupVersion]; source != gv.source { continue } if existing, exists := priorities[gv.Group]; exists { if existing < info.GroupPriorityMinimum { priorities[gv.Group] = info.GroupPriorityMinimum } } else { priorities[gv.Group] = info.GroupPriorityMinimum } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 02 00:29:39 UTC 2024 - 16.1K bytes - Viewed (0) -
cmd/kubeadm/app/util/config/common_test.go
}, { gv: schema.GroupVersion{ Group: KubeadmGroupName, Version: "v1alpha3", }, expectedErr: true, }, { gv: schema.GroupVersion{ Group: KubeadmGroupName, Version: "v1beta1", }, expectedErr: true, }, { gv: schema.GroupVersion{ Group: KubeadmGroupName, Version: "v1beta2", }, expectedErr: true, }, { gv: schema.GroupVersion{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 29 05:14:21 UTC 2024 - 23.4K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/client.go
func (clientConfigFn ClientConfigFunc) clientForGroupVersion(gv schema.GroupVersion, negotiatedSerializer runtime.NegotiatedSerializer) (RESTClient, error) { cfg, err := clientConfigFn() if err != nil { return nil, err } if negotiatedSerializer != nil { cfg.ContentConfig.NegotiatedSerializer = negotiatedSerializer } cfg.GroupVersion = &gv if len(gv.Group) == 0 { cfg.APIPath = "/api" } else {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 15 13:01:18 UTC 2021 - 2.1K bytes - Viewed (0) -
pkg/config/analysis/analyzers/schema/validation.go
ctx.Report(gv, morePreciseMessage(r, err, true)) } } else { ctx.Report(gv, morePreciseMessage(r, err, true)) } } if warnings != nil { if multiErr, ok := warnings.(*multierror.Error); ok { for _, err := range multiErr.WrappedErrors() { ctx.Report(gv, morePreciseMessage(r, err, false)) } } else { ctx.Report(gv, morePreciseMessage(r, warnings, false)) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jan 08 07:38:28 UTC 2024 - 3.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/group_version.go
if len(gv.Group) == 0 && gv.Version == "v1" { return gv.Version } if len(gv.Group) > 0 { return gv.Group + "/" + gv.Version } return gv.Version } // MarshalJSON implements the json.Marshaller interface. func (gv GroupVersion) MarshalJSON() ([]byte, error) { s := gv.String() if strings.Count(s, "/") > 1 { return []byte{}, fmt.Errorf("illegal GroupVersion %v: contains more than one /", s)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Sep 04 09:55:26 UTC 2021 - 4.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/scheme_test.go
} func TestAddKnownTypesIdemPotent(t *testing.T) { s := runtime.NewScheme() gv := schema.GroupVersion{Group: "foo", Version: "v1"} s.AddKnownTypes(gv, &runtimetesting.InternalSimple{}) s.AddKnownTypes(gv, &runtimetesting.InternalSimple{}) if len(s.KnownTypes(gv)) != 1 { t.Errorf("expected only one %v type after double registration", gv) } if len(s.AllKnownTypes()) != 1 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 38.2K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapiv3/util.go
limitations under the License. */ package openapiv3 import ( "k8s.io/apimachinery/pkg/runtime/schema" ) func groupVersionToOpenAPIV3Path(gv schema.GroupVersion) string { return "apis/" + gv.Group + "/" + gv.Version
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 17 01:38:54 UTC 2021 - 758 bytes - Viewed (0)