// GetConfigMap returns the specified ConfigMap from Kubernetes. It retrieves it from cache if there
GetConfigMap returns the specified ConfigMap from Kubernetes. It retrieves it from cache if there
// GetConfigMap returns the specified ConfigMap from Kubernetes . It retrieves it from cache if there
func (rm *ResourceManager) GetConfigMap(name, namespace string) (*v1.ConfigMap, error) {
	rm.Lock()
	defer rm.Unlock()
	configMapKey := rm.getStoreKey(namespace, name)
	if cm, ok := rm.configMaps[configMapKey]; ok {
		return cm, nil
	}
	var opts metav1.GetOptions
	cm, err := rm.k8sClient.CoreV1().ConfigMaps(namespace).Get(name, opts)
	if err != nil {
		return nil, err
	}
	rm.configMaps[configMapKey] = cm
	return cm, err
}
func ( rm * ResourceManager ) GetConfigMap ( name , namespace string ) ( * v1 . ConfigMap , error ) { rm . Lock ( ) defer rm . Unlock ( ) configMapKey := rm . getStoreKey ( namespace , name ) if cm , ok := rm . configMaps [ configMapKey ] ; ok { return cm , nil } var opts metav1 . GetOptions cm , err := rm . k8sClient . CoreV1 ( ) . ConfigMaps ( namespace ) . Get ( name , opts ) if err != nil { return nil , err } rm . configMaps [ configMapKey ] = cm return cm , err }
GetConfigMap returns the specified ConfigMap from Kubernetes.
GetConfigMap returns the specified ConfigMap from Kubernetes .