• Kubernetes Submit Queue's avatar
    Merge pull request #46879 from luxas/kubeadm_enable_node_authorizer · 2bcd3d1a
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    kubeadm: Enable the Node Authorizer/Admission plugin in v1.7
    
    **What this PR does / why we need it**:
    
    This is similar to https://github.com/kubernetes/kubernetes/pull/46796, but for kubeadm.
    Basically it was a part of https://github.com/kubernetes/kubernetes/pull/46796, but there were some other upgradability and compability concerns for kubeadm I took care of while working today.
    
    Example:
    
    ```console
    $ kubeadm init --kubernetes-version v1.7.0-beta.0
    [kubeadm] WARNING: kubeadm is in beta, please do not use it for production clusters.
    [init] Using Kubernetes version: v1.7.0-beta.0
    [init] Using Authorization mode: [RBAC Node]
    ...
    $ sudo kubectl --kubeconfig=/etc/kubernetes/kubelet.conf get secret foo
    Error from server (Forbidden): User "system:node:thegopher" cannot get secrets in the namespace "default".: "no path found to object" (get secrets foo)
    
    $ echo '{"apiVersion":"v1","kind":"Node","metadata":{"name":"foo"}}' | sudo kubectl create -f - --kubeconfig=/etc/kubernetes/kubelet.conf
    Error from server (Forbidden): error when creating "STDIN": nodes "foo" is forbidden: node thegopher cannot modify node foo
    ```
    
    **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
    
    **Special notes for your reviewer**:
    
    Depends on https://github.com/kubernetes/kubernetes/pull/46864 (uses that PR as a base, will rebase once it's merged)
    
    Please only review the second commit. Will also fix tests in a minute.
    
    **Release note**:
    
    ```release-note
    kubeadm: Enable the Node Authorizer/Admission plugin in v1.7 
    ```
    @mikedanese @liggitt @pipejakob @roberthbailey @jbeda @timothysc
    2bcd3d1a
Name
Last commit
Last update
..
clicheck Loading commit data...
cloud-controller-manager Loading commit data...
gendocs Loading commit data...
genkubedocs Loading commit data...
genman Loading commit data...
genslateyaml Loading commit data...
genswaggertypedocs Loading commit data...
genutils Loading commit data...
genyaml Loading commit data...
gke-certificates-controller Loading commit data...
hyperkube Loading commit data...
kube-apiserver Loading commit data...
kube-controller-manager Loading commit data...
kube-proxy Loading commit data...
kubeadm Loading commit data...
kubectl Loading commit data...
kubelet Loading commit data...
kubemark Loading commit data...
libs/go2idl Loading commit data...
linkcheck Loading commit data...
mungedocs Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...