• Monis Khan's avatar
    Use a dynamic RESTMapper for admission plugins · 30075139
    Monis Khan authored
    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: 's avatarMonis Khan <mkhan@redhat.com>
    30075139
Name
Last commit
Last update
..
BUILD Loading commit data...
apiserver_test.go Loading commit data...
main_test.go Loading commit data...