• Kubernetes Submit Queue's avatar
    Merge pull request #68296 from liztio/fix-kubeadm-external-certs · dd14bc5a
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 68087, 68256, 64621, 68299, 68296). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.
    
    Fixes using externally managed certs for kubeadm
    
    **What this PR does / why we need it**:
    The certificates overhaul caused a regression when using external certificates. This fixes that issue so external CAs no longer require a key if all certificates exist.
    
    Walk the certificate tree, at each step checking for a CACert.
    If the CACert is found, try to use it to generate certificates.
    Otherwise, generate a new CA cert.
    
    **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
    Fixes kubernetes/kubeadm#918
    
    **Special notes for your reviewer**:
    
    **Release note**:
    
    ```release-note
    External CAs can now be used for kubeadm with only a certificate, as long as all required certificates already exist.
    ```
    dd14bc5a
Name
Last commit
Last update
..
clicheck Loading commit data...
cloud-controller-manager Loading commit data...
controller-manager Loading commit data...
gendocs Loading commit data...
genkubedocs Loading commit data...
genman Loading commit data...
genswaggertypedocs Loading commit data...
genutils Loading commit data...
genyaml Loading commit data...
hyperkube Loading commit data...
importverifier Loading commit data...
kube-apiserver Loading commit data...
kube-controller-manager Loading commit data...
kube-proxy Loading commit data...
kube-scheduler Loading commit data...
kubeadm Loading commit data...
kubectl Loading commit data...
kubelet Loading commit data...
kubemark Loading commit data...
linkcheck Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...