func ClusterStatusWithAPIEndpoint(nodeName string, endpoint kubeadmapi.APIEndpoint) *FakeConfigMap {
	marshaledClusterStatus, _ := json.Marshal(kubeadmapi.ClusterStatus{
		APIEndpoints: map[string]kubeadmapi.APIEndpoint{
			nodeName: endpoint,
		},
	})
	return &FakeConfigMap{
		Name: constants.KubeadmConfigConfigMap,
		Data: map[string]string{
			constants.ClusterStatusConfigMapKey: string(marshaledClusterStatus),
		},
	}
}
// ClusterStatusWithAPIEndpoint returns a FakeConfigMap containing a
// cluster status with the provided endpoint for nodeName as a single
// entry
ClusterStatusWithAPIEndpoint returns a FakeConfigMap containing a
cluster status with the provided endpoint for nodeName as a single
entry
// ClusterStatusWithAPIEndpoint returns a FakeConfigMap containing a // cluster status with the provided endpoint for nodeName as a single // entry
func ClusterStatusWithAPIEndpoint(nodeName string, endpoint kubeadmapi.APIEndpoint) *FakeConfigMap {
	marshaledClusterStatus, _ := json.Marshal(kubeadmapi.ClusterStatus{
		APIEndpoints: map[string]kubeadmapi.APIEndpoint{
			nodeName: endpoint,
		},
	})
	return &FakeConfigMap{
		Name: constants.KubeadmConfigConfigMap,
		Data: map[string]string{
			constants.ClusterStatusConfigMapKey: string(marshaledClusterStatus),
		},
	}
}
func ClusterStatusWithAPIEndpoint ( nodeName string , endpoint kubeadmapi . APIEndpoint ) * FakeConfigMap { marshaledClusterStatus , _ := json . Marshal ( kubeadmapi . ClusterStatus { APIEndpoints : map [ string ] kubeadmapi . APIEndpoint { nodeName : endpoint , } , } ) return & FakeConfigMap { Name : constants . KubeadmConfigConfigMap , Data : map [ string ] string { constants . ClusterStatusConfigMapKey : string ( marshaledClusterStatus ) , } , } }
ClusterStatusWithAPIEndpoint returns a FakeConfigMap containing a
cluster status with the provided endpoint for nodeName as a single
entry
ClusterStatusWithAPIEndpoint returns a FakeConfigMap containing a cluster status with the provided endpoint for nodeName as a single entry