k3s/pkg/apis
Kubernetes Submit Queue 983a47d876 Merge pull request #39109 from derekwaynecarr/admission-version-config
Automatic merge from submit-queue (batch tested with PRs 39807, 37505, 39844, 39525, 39109)

Admission control support for versioned configuration files

**What this PR does / why we need it**:
Today, the `--admission-control-config-file=` argument takes an opaque file that is shared across all admission controllers to provide configuration.  This file is not well-versioned and it's shared across multiple plug-ins.  Some plugins take file based configuration (`ImagePolicyWebhook`) and others abuse flags to provide configuration because we lacked a good example (`InitialResources`).  This PR defines a versioned configuration format that we can use moving forward to provide configuration input to admission controllers that is well-versioned, and does not require the addition of new flags.

The sample configuration file would look as follows:

```
apiVersion: componentconfig/v1alpha1
kind: AdmissionConfiguration
plugins:
- name: "ImagePolicyWebhook"
  path: "image-policy-webhook.json"
```

The general behavior is each plugin that requires additional configuration is enumerated by name.  An alternate file location is provided for its specific configuration, or the configuration can be embedded as a raw extension via the configuration section.

**Special notes for your reviewer**:
A follow-on PR will be needed to make `ImagePolicyWebhook` to use versioned configuration.  This PR maintains backwards compatibility by ignoring configuration it cannot understand and therefore treating the file as opaque.  I plan to make use of this PR to complete https://github.com/kubernetes/kubernetes/pull/36765 which attempts to allow more configuration parameters to the `ResourceQuota` admission plugin.
2017-01-13 13:40:47 -08:00
..
abac mechanical repercussions 2017-01-13 08:27:14 -05:00
apps Update generated files 2017-01-11 21:54:07 +01:00
authentication Update generated files 2017-01-11 21:54:07 +01:00
authorization Update generated files 2017-01-11 21:54:07 +01:00
autoscaling Update generated files 2017-01-11 21:54:07 +01:00
batch Update generated files 2017-01-11 21:54:07 +01:00
certificates Merge pull request #39698 from mikedanese/default-csr 2017-01-12 15:06:29 -08:00
componentconfig Merge pull request #39109 from derekwaynecarr/admission-version-config 2017-01-13 13:40:47 -08:00
extensions [scheduling] Moved pod affinity and anti-affinity from annotations to api 2017-01-12 14:54:29 -05:00
imagepolicy Update generated files 2017-01-11 21:54:07 +01:00
meta/v1 Update bazel 2017-01-12 09:15:15 +01:00
policy Update generated files 2017-01-11 21:54:07 +01:00
rbac Merge pull request #37557 from sttts/sttts-update-ugorji 2017-01-12 02:36:16 -08:00
storage Update generated files 2017-01-11 21:54:07 +01:00
OWNERS Update OWNERS 2016-11-18 15:17:59 -08:00