- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for knownKinds (0.13 sec)
-
cmd/kubeadm/app/util/marshal.go
} // Check whether the kind has been registered before. If it has, throw an error if known := knownKinds[gvk.Kind]; known { errs = append(errs, errors.Errorf("invalid configuration: kind %q is specified twice in YAML file", gvk.Kind)) continue } knownKinds[gvk.Kind] = true // Save the mapping between the gvk and the bytes that object consists of gvkmap[*gvk] = b }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 29 05:14:21 UTC 2024 - 5.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_test_context.go
// Prefer GVK if it is our fake policy or binding for i, knownKind := range knownKinds { if knownKind == p.policyGVK || knownKind == p.bindingGVK { toTake = i break } } objectGVK = knownKinds[toTake] } // Make sure GVK is known to the fake rest mapper. To prevent cryptic error mapping, err := p.restMapper.RESTMapping(objectGVK.GroupKind(), objectGVK.Version) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 19K bytes - Viewed (0)