// Get configmap by the given name
Get configmap by the given name
// Get configmap by the given name
func (r *ReconcileIntegration) GetConfigMap(integration *wso2v1alpha2.Integration, configMapName string) (*corev1.ConfigMap, error) {
	configMap := &corev1.ConfigMap{}
	err := r.client.Get(context.TODO(), types.NamespacedName{Name: configMapName, Namespace: config.SystemNamespace}, configMap)
	if err != nil {
		log.Error(err, "Error getting the ConfigMap " + configMapName)
	}
	return configMap, err
}
func ( r * ReconcileIntegration ) GetConfigMap ( integration * wso2v1alpha2 . Integration , configMapName string ) ( * corev1 . ConfigMap , error ) { configMap := & corev1 . ConfigMap { } err := r . client . Get ( context . TODO ( ) , types . NamespacedName { Name : configMapName , Namespace : config . SystemNamespace } , configMap ) if err != nil { log . Error ( err , " " + configMapName ) } return configMap , err }
Get configmap by the given name
Get configmap by the given name