k3s/pkg
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
..
admission Add support for versioned configuration in admission 2017-01-12 16:47:36 -05:00
api Merge pull request #39814 from deads2k/api-58-multi-register 2017-01-13 12:37:02 -08:00
apimachinery mechanical repercussions 2017-01-13 08:27:14 -05:00
apis Merge pull request #39109 from derekwaynecarr/admission-version-config 2017-01-13 13:40:47 -08:00
auth moves of genericapiserver packages without dependencies 2017-01-11 15:06:38 -05:00
capabilities Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
client Merge pull request #37505 from k82cn/use_controller_inf 2017-01-13 13:40:41 -08:00
cloudprovider start the apimachinery repo 2017-01-11 09:09:48 -05:00
controller Merge pull request #39525 from kargakis/update-equality-helper 2017-01-13 13:40:45 -08:00
conversion start the apimachinery repo 2017-01-11 09:09:48 -05:00
credentialprovider start the apimachinery repo 2017-01-11 09:09:48 -05:00
fieldpath start the apimachinery repo 2017-01-11 09:09:48 -05:00
fields start the apimachinery repo 2017-01-11 09:09:48 -05:00
generated Add generated artifacts for AdmissionConfiguration 2017-01-12 16:47:13 -05:00
genericapiserver Merge pull request #39814 from deads2k/api-58-multi-register 2017-01-13 12:37:02 -08:00
hyperkube Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
kubeapiserver mechanical repercussions 2017-01-11 15:20:36 -05:00
kubectl Merge pull request #39814 from deads2k/api-58-multi-register 2017-01-13 12:37:02 -08:00
kubelet Merge pull request #39814 from deads2k/api-58-multi-register 2017-01-13 12:37:02 -08:00
kubemark fix redundant alias clientset 2017-01-12 10:21:05 +08:00
labels start the apimachinery repo 2017-01-11 09:09:48 -05:00
master Merge pull request #39814 from deads2k/api-58-multi-register 2017-01-13 12:37:02 -08:00
metrics fix redundant alias clientset 2017-01-12 10:21:05 +08:00
probe start the apimachinery repo 2017-01-11 09:09:48 -05:00
proxy proxy/iptables: clean up service map creation 2017-01-11 15:17:55 -06:00
quota Merge pull request #36517 from apelisse/owners-pkg-quota 2017-01-13 12:37:15 -08:00
registry Merge pull request #39807 from deads2k/client-02-client-go 2017-01-13 13:21:19 -08:00
routes Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
runtime start the apimachinery repo 2017-01-11 09:09:48 -05:00
security start the apimachinery repo 2017-01-11 09:09:48 -05:00
securitycontext Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
selection start the apimachinery repo 2017-01-11 09:09:48 -05:00
serviceaccount Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
ssh use apimachinery packages instead of client-go packages 2017-01-13 14:04:54 -05:00
storage mechanical repercussions 2017-01-13 08:27:14 -05:00
types start the apimachinery repo 2017-01-11 09:09:48 -05:00
util Merge pull request #39525 from kargakis/update-equality-helper 2017-01-13 13:40:45 -08:00
version Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
volume Merge pull request #39844 from screeley44/replica_bug 2017-01-13 13:40:43 -08:00
watch start the apimachinery repo 2017-01-11 09:09:48 -05:00
BUILD mechanical repercussions 2017-01-11 15:20:36 -05:00
OWNERS