• Kubernetes Submit Queue's avatar
    Merge pull request #47081 from luxas/kubeadm_postinst_idempotency · 7e0c9e79
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 47024, 47050, 47086, 47081, 47013)
    
    kubeadm: Make the creation of the RBAC rules phase idempotent
    
    **What this PR does / why we need it**:
    
    Bugfix: Currently kubeadm fails with a non-zero code if resources it's trying to create already exist. This PR fixes that by making kubeadm try to Update resources that already exist.
    
    After this PR, https://github.com/kubernetes/kubernetes/pull/46879 and a beta.1 release, kubeadm will be fully upgradeable from v1.6 to v1.7 using only kubeadm init.
    
    Last piece of https://github.com/kubernetes/kubeadm/issues/288
    
    **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
    
    Fixes: https://github.com/kubernetes/kubeadm/issues/288
    
    **Special notes for your reviewer**:
    
    **Release note**:
    
    ```release-note
    kubeadm: Modifications to cluster-internal resources installed by kubeadm will be overwritten when upgrading from v1.6 to v1.7.
    ```
    @pipejakob @mikedanese @timothysc
    7e0c9e79
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...