k3s/cmd/kube-apiserver
Monis Khan 300751393b
Use a dynamic RESTMapper for admission plugins
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.

Signed-off-by: Monis Khan <mkhan@redhat.com>
2018-04-17 09:59:41 -04:00
..
app Use a dynamic RESTMapper for admission plugins 2018-04-17 09:59:41 -04:00
BUILD Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
OWNERS add CaoShuFeng as a reviewer of kube-apiserver 2018-04-17 14:32:05 +08:00
apiserver.go low hanging fruit for using cobra commands 2018-01-17 13:43:43 -05:00