- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for GroupVersionKindsFromBytes (0.22 sec)
-
cmd/kubeadm/app/util/marshal.go
gvkmap[*gvk] = b } if err := errorsutil.NewAggregate(errs); err != nil { return nil, err } return gvkmap, nil } // GroupVersionKindsFromBytes parses the bytes and returns a gvk slice func GroupVersionKindsFromBytes(b []byte) ([]schema.GroupVersionKind, error) { gvkmap, err := SplitYAMLDocuments(b) if err != nil { return nil, err } gvks := []schema.GroupVersionKind{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 29 05:14:21 UTC 2024 - 5.8K bytes - Viewed (0) -
cmd/kubeadm/app/util/config/common_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 29 05:14:21 UTC 2024 - 23.4K bytes - Viewed (0) -
cmd/kubeadm/app/util/marshal_test.go
fileContents: files["noapiversion"], gvks: []string{}, expectedErr: true, }, } for _, rt := range tests { t.Run(rt.name, func(t2 *testing.T) { gvks, err := GroupVersionKindsFromBytes(rt.fileContents) if (err != nil) != rt.expectedErr { t2.Errorf("expected error: %t, actual: %t", rt.expectedErr, err != nil) } strgvks := []string{} for _, gvk := range gvks {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 29 05:14:21 UTC 2024 - 11.6K bytes - Viewed (0)