kubernetes/plugin/pkg/admission
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
..
admit hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
alwayspullimages hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
antiaffinity hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
certificates ClusterTrustBundles: Define types 2023-03-15 20:10:18 -07:00
defaulttolerationseconds hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
deny hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
eventratelimit Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
extendedresourcetoleration hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
gc fix broken tests after dependency injection. 2023-03-13 14:40:47 -07:00
imagepolicy style: remove redundant judgment 2022-08-25 12:07:36 +08:00
limitranger dedupe pod resource request calculation 2023-03-09 17:15:53 -06:00
namespace Update admission initializers. 2022-11-07 21:24:46 +00:00
network plugin/pkg/admission: Replace deprecated pointer function 2023-01-04 14:12:32 +01:00
noderestriction plugin/pkg/admission: Replace deprecated pointer function 2023-01-04 14:12:32 +01:00
nodetaint hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
podnodeselector Update admission initializers. 2022-11-07 21:24:46 +00:00
podtolerationrestriction Update admission initializers. 2022-11-07 21:24:46 +00:00
priority Merge pull request #106565 from kerthcet/feature/addd-several-testcases-to-cover-priority-admission 2022-03-03 10:43:48 -08:00
resourcequota fix broken tests after dependency injection. 2023-03-13 14:40:47 -07:00
runtimeclass mark PodOverhead to GA in v1.24; remove in v1.26 2022-03-17 09:30:14 +08:00
security PodSecurity: promote config and feature gate to GA 2022-06-15 09:29:47 +08:00
securitycontext/scdeny Add a SecurityContextDeny feature gate disabled by default 2023-03-13 10:18:08 +01:00
serviceaccount cleanup: remove duplicate import 2022-07-14 11:25:19 +08:00
storage Remove AWS legacy cloud provider + EBS in-tree storage plugin 2023-03-06 14:01:15 +00:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00