// createClusterInfoMap creates a config map with cluster information to be
// made available to every cluster hook.
createClusterInfoMap creates a config map with cluster information to be
made available to every cluster hook.
// createClusterInfoMap creates a config map with cluster information to be // made available to every cluster hook .
func (r *systemResources) createClusterInfoMap() error {
	configMap := ops.MakeClusterInfoMap(r.Cluster)
	_, err := r.Client.CoreV1().ConfigMaps(constants.KubeSystemNamespace).
		Create(context.TODO(), configMap, metav1.CreateOptions{})
	if err != nil {
		return rigging.ConvertError(err)
	}
	r.Infof("Created %v config map.", configMap.Name)
	return nil
}
func ( r * systemResources ) createClusterInfoMap ( ) error { configMap := ops . MakeClusterInfoMap ( r . Cluster ) _ , err := r . Client . CoreV1 ( ) . ConfigMaps ( constants . KubeSystemNamespace ) . Create ( context . TODO ( ) , configMap , metav1 . CreateOptions { } ) if err != nil { return rigging . ConvertError ( err ) } r . Infof ( " " , configMap . Name ) return nil }
createClusterInfoMap creates a config map with cluster information to be
made available to every cluster hook.
createClusterInfoMap creates a config map with cluster information to be made available to every cluster hook .