kubernetes/pkg/registry/registrytest
Taahir Ahmed 6a75e7c40c ClusterTrustBundles: Define types
This commit is the main API piece of KEP-3257 (ClusterTrustBundles).

This commit:

* Adds the certificates.k8s.io/v1alpha1 API group
* Adds the ClusterTrustBundle type.
* Registers the new type in kube-apiserver.
* Implements the type-specfic validation specified for
  ClusterTrustBundles:
  - spec.pemTrustAnchors must always be non-empty.
  - spec.signerName must be either empty or a valid signer name.
  - Changing spec.signerName is disallowed.
* Implements the "attest" admission check to restrict actions on
  ClusterTrustBundles that include a signer name.

Because it wasn't specified in the KEP, I chose to make attempts to
update the signer name be validation errors, rather than silently
ignored.

I have tested this out by launching these changes in kind and
manipulating ClusterTrustBundle objects in the resulting cluster using
kubectl.
2023-03-15 20:10:18 -07:00
..
categoriesProvider.go
doc.go
endpoint.go
etcd.go ClusterTrustBundles: Define types 2023-03-15 20:10:18 -07:00
node.go delete unused functions in pkg directory 2023-01-16 21:43:36 +08:00
OWNERS OWNERS cleanup - Jan 2021 Week 1 2022-01-10 08:14:29 -05:00
service.go delete unused functions in pkg directory 2023-01-16 21:43:36 +08:00
shortNamesProvider.go
validate.go apiserver: cleanup unused StrategyExceptions 2022-12-12 23:56:24 +08:00