- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 191 for groupKinds (0.18 sec)
-
staging/src/k8s.io/apimachinery/pkg/runtime/codec.go
func (v multiGroupVersioner) Identifier() string { groupKinds := make([]string, 0, len(v.acceptedGroupKinds)) for _, gk := range v.acceptedGroupKinds { groupKinds = append(groupKinds, gk.String()) } result := map[string]string{ "name": "multi", "target": v.target.String(), "accepted": strings.Join(groupKinds, ","), "coerce": strconv.FormatBool(v.coerce), }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 03:20:30 UTC 2023 - 12.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/schema/group_version.go
} // GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying // concepts during lookup stages without having partially valid types type GroupKind struct { Group string Kind string } func (gk GroupKind) Empty() bool { return len(gk.Group) == 0 && len(gk.Kind) == 0 } func (gk GroupKind) WithVersion(version string) GroupVersionKind {
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/api/meta/multirestmapper_test.go
}, { name: "ignore not found with kind not exist", mapper: MultiRESTMapper{fixedRESTMapper{err: &NoKindMatchError{GroupKind: schema.GroupKind{Kind: "IGNORE_THIS"}}}}, groupKind: schema.GroupKind{Kind: "Foo"}, versions: nil, result: nil, err: &NoKindMatchError{GroupKind: schema.GroupKind{Kind: "Foo"}},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 05 01:49:02 UTC 2018 - 13.6K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/crd_finder.go
"k8s.io/client-go/dynamic" ) // CRDGetter is a function that can download the list of GVK for all // CRDs. type CRDGetter func() ([]schema.GroupKind, error) func CRDFromDynamic(client dynamic.Interface) CRDGetter { return func() ([]schema.GroupKind, error) { list, err := client.Resource(schema.GroupVersionResource{ Group: "apiextensions.k8s.io", Version: "v1", Resource: "customresourcedefinitions",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 19 14:05:43 UTC 2021 - 2.5K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/fallback_query_param_verifier_test.go
tests := map[string]struct { crds []schema.GroupKind // CRDFinder returns these CRD's gvk schema.GroupVersionKind // GVK whose OpenAPI spec is checked queryParam VerifiableQueryParam // Usually "fieldValidation" expectedSupports bool }{ "Field validation query param is supported for batch/v1/Job, primary verifier": { crds: []schema.GroupKind{}, gvk: schema.GroupVersionKind{ Group: "batch",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 10 18:30:16 UTC 2023 - 10.3K bytes - Viewed (0) -
plugin/pkg/auth/authorizer/rbac/subject_locator_test.go
[]rbacv1.Subject{ {Kind: rbacv1.GroupKind, APIGroup: rbacv1.GroupName, Name: user.SystemPrivilegedGroup}, {Kind: rbacv1.UserKind, APIGroup: rbacv1.GroupName, Name: "super-admin"}, {Kind: rbacv1.GroupKind, APIGroup: rbacv1.GroupName, Name: "super-admins"}, {Kind: rbacv1.UserKind, APIGroup: rbacv1.GroupName, Name: "admin"}, {Kind: rbacv1.GroupKind, APIGroup: rbacv1.GroupName, Name: "admins"}, }, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 22 12:17:05 UTC 2018 - 5.6K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/crd_finder_test.go
found, err := finder.HasCRD(schema.GroupKind{Group: "", Kind: "Pod"}) if found { t.Fatalf("Found the CRD with non-working getter function") } if err == nil { t.Fatalf("Error in getter should be reported") } } func TestCRDFinder(t *testing.T) { getter := func() ([]schema.GroupKind, error) { return []schema.GroupKind{ { Group: "crd.com", Kind: "MyCRD", }, { Group: "crd.com",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 05 02:24:38 UTC 2023 - 2.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/errors.go
for _, v := range e.SearchedVersions { searchedVersions.Insert(schema.GroupVersion{Group: e.GroupKind.Group, Version: v}.String()) } switch len(searchedVersions) { case 0: return fmt.Sprintf("no matches for kind %q in group %q", e.GroupKind.Kind, e.GroupKind.Group) case 1: return fmt.Sprintf("no matches for kind %q in version %q", e.GroupKind.Kind, searchedVersions.List()[0]) default:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 11 22:50:51 UTC 2022 - 4.2K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/name.go
} } return schema.GroupKind{Kind: "<unknown>"} } func printObj(w io.Writer, name string, operation string, shortOutput bool, groupKind schema.GroupKind) error { if len(groupKind.Kind) == 0 { return fmt.Errorf("missing kind for resource with name %v", name) } if len(operation) > 0 { operation = " " + operation } if shortOutput { operation = "" }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 28 23:24:54 UTC 2019 - 3.9K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/query_param_verifier_v3_test.go
tests := map[string]struct { crds []schema.GroupKind // CRDFinder returns these CRD's gvk schema.GroupVersionKind // GVK whose OpenAPI V3 spec is checked queryParam VerifiableQueryParam // Usually "fieldValidation" expectedSupports bool }{ "Field validation query param is supported for batch/v1/Job": { crds: []schema.GroupKind{}, gvk: schema.GroupVersionKind{ Group: "batch",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 12 04:44:45 UTC 2023 - 5.9K bytes - Viewed (0)