• Kubernetes Submit Queue's avatar
    Merge pull request #66445 from rosti/kubeadm-test-cmd-init · 65ba40c2
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 66445, 66643, 60551). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    kubeadm: Improve kubeadm init cmd tests
    
    **What this PR does / why we need it**:
    
    This PR improves kubeadm init cmd tests in the following ways:
    
    - Fix a few cases that were always successful (despite completely wrong).
    - Add more test cases (for different configs in particular)
    - Use dry run, to avoid modifying the system and using kubeadm reset
    
    **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 NONE
    
    **Special notes for your reviewer**:
    /cc @kubernetes/sig-cluster-lifecycle-pr-reviews
    /area kubeadm
    /assign @luxas
    /assign @timothysc
    
    **Release note**:
    
    ```release-note
    NONE
    ```
    65ba40c2
Name
Last commit
Last update
..
app Loading commit data...
test Loading commit data...
.import-restrictions Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
kubeadm.go Loading commit data...