kubernetes/pkg/printers
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
..
internalversion ClusterTrustBundles: Define types 2023-03-15 20:10:18 -07:00
storage hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
.import-restrictions update existing import-restrictions files 2020-01-28 10:51:45 +01:00
interface.go Moves tableprinter.go and tabwriter.go to cli-runtime/pkg/printers. Copies PrintOptions to cli-runtime/pkg/printers. 2019-10-22 23:45:08 -07:00
OWNERS Update sig-cli OWNERS 2022-02-14 10:55:35 -07:00
tablegenerator_test.go Check for errors ahead of time 2022-06-23 23:26:17 +08:00
tablegenerator.go Generate and format files 2022-07-26 13:14:05 -04:00