• Kubernetes Submit Queue's avatar
    Merge pull request #67944 from fabriziopandini/kubeadm-config-configMap · 5540edc1
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 63011, 68089, 67944, 68132). 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.
    
    Kubeadm upload and fetch of kubeam config v1alpha3
    
    **What this PR does / why we need it**:
    This PR implements upload and fetch of kubeam config v1alpha3 from cluster.
    
    More in detail:
    In upload, `kubeadm-config` gets
    - `ClusterConfiguration` (without components config which are already stored in separated ConfigMaps)
    - `ClusterStatus`(initialised or updated with the API endpoint of the current node)
    
    During fetch `InitConfiguration` is composed with:
    - `ClusterConfiguration` from `kubeadm-config`
    - The `APIEndpoint` of the current node from `ClusterStatus` in `kubeadm-config`
    - Component configs from corresponding ConfigMaps
    
    **Which issue(s) this PR fixes** :
    refs https://github.com/kubernetes/kubeadm/issues/911, refs https://github.com/kubernetes/kubeadm/issues/963
    
    **Special notes for your reviewer**:
    In order to implement this it was necessary to extend current component config management with a new GetFromConfigMap operation. This is implemented in a separated commit "
    implement component configs GetFromConfigMap".
    The real change build on this (commi "upload and fetch kubeadm v1alpha3")
    
    **Release note**:
    ```release-note
    NONE
    ```
    
    /cc @kubernetes/sig-cluster-lifecycle-pr-reviews
    /sig cluster-lifecycle
    /area kubeadm
    /kind enhancement
    /assign @luxas
    /assign @timothysc
    /cc @chuckha @rosti @neolit123 @liztio
    5540edc1
masterconfig.go 14.7 KB