- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ParseGroupKind (0.2 sec)
-
staging/src/k8s.io/apimachinery/pkg/runtime/schema/group_version.go
var gvk *GroupVersionKind if strings.Count(arg, ".") >= 2 { s := strings.SplitN(arg, ".", 3) gvk = &GroupVersionKind{Group: s[2], Version: s[1], Kind: s[0]} } return gvk, ParseGroupKind(arg) } // GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying // concepts during lookup stages without having partially valid types type GroupResource struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 30 09:08:59 UTC 2023 - 10.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/schema/group_version_test.go
{input: "StatefulSet.apps", out: GroupKind{Group: "apps", Kind: "StatefulSet"}}, } for i, test := range tests { t.Run(test.input, func(t *testing.T) { out := ParseGroupKind(test.input) if out != test.out { t.Errorf("%d: expected output: %#v, got: %#v", i, test.out, out) } }) } } func TestToAPIVersionAndKind(t *testing.T) { tests := []struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 15 01:46:00 UTC 2022 - 7.2K bytes - Viewed (0)