k3s/test/integration
Kubernetes Submit Queue b37564d9f2
Merge pull request #62659 from enj/enj/i/gc_admission_dynamic_restmapper
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Use a dynamic RESTMapper for admission plugins

**What this PR does / why we need it**:

This change updates the REST mapper used by all admission plugins to be backed by cached discovery information.  This cache is updated every ten seconds via a post start hook and will not attempt to update on calls to `RESTMapping`.  It solely relies on the hook to keep the cache in sync with discovery.

This prevents issues with the `OwnerReferencesPermissionEnforcement` admission plugin when it is used with custom resources that set `blockOwnerDeletion`.

**Which issue(s) this PR fixes**:
`Fixes #...`

**Special notes for your reviewer**:

There are probably other ways the post start hook could be wired.

**Release note**:

```release-note
NONE
```

Signed-off-by: Monis Khan <mkhan@redhat.com>

@kubernetes/sig-api-machinery-misc
2018-04-18 08:51:37 -07:00
..
apiserver remove kube-apiserver option that is always force to true 2018-04-02 12:19:34 -04:00
auth node authorizer sets up access rules for dynamic config 2018-03-27 08:49:45 -07:00
benchmark/jsonify Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
client Use pause manifest image 2018-04-06 11:00:50 +05:30
configmap Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
daemonset Use typed events client directly 2018-04-01 18:57:29 +10:00
defaulttolerationseconds update metrics to true like it is for kube-apiserver 2018-03-22 10:27:31 -04:00
deployment Only check hash labels of non-adopted resources in integration tests 2018-03-26 17:08:31 -07:00
etcd Use a dynamic RESTMapper for admission plugins 2018-04-17 09:59:41 -04:00
evictions Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
examples Use a dynamic RESTMapper for admission plugins 2018-04-17 09:59:41 -04:00
framework Use pause manifest image 2018-04-06 11:00:50 +05:30
garbagecollector Merge pull request #56363 from hzxuzhonghu/test-opt 2018-03-28 13:52:10 -07:00
ipamperf Support custom test configurations 2018-04-02 10:29:36 -07:00
master Merge pull request #60536 from immutableT/transformer_metrics 2018-04-17 19:53:15 -07:00
metrics Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
objectmeta Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
openshift remove kube-apiserver option that is always force to true 2018-04-02 12:19:34 -04:00
pods Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
quota Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
replicaset hack/update-bazel.sh 2018-03-20 11:15:36 -07:00
replicationcontroller Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
scale Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
scheduler Merge pull request #62230 from msau42/redo-integration 2018-04-10 18:19:09 -07:00
scheduler_perf Refactor common parts of scheduler_perf into reusable utils 2018-02-27 13:30:18 -08:00
secrets Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
serviceaccount Merge pull request #59934 from mikedanese/jwt-auth 2018-02-20 18:40:59 -08:00
statefulset Adding integration tests for statefulset 2018-03-28 19:24:48 -04:00
storageclasses Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
tls deduplicate server startup code in tls integration test 2018-04-04 11:21:19 +08:00
ttlcontroller Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
util Use typed events client directly 2018-04-01 18:57:29 +10:00
volume update bazel 2018-02-27 20:23:36 +08:00
BUILD Adding integration tests for statefulset 2018-03-28 19:24:48 -04:00
benchmark-controller.json Use pause manifest image 2018-04-06 11:00:50 +05:30
doc.go
utils.go aesgcm - passing 2018-01-31 10:50:11 -08:00