Exemplo n.º 1
0
// GetConfigMapDetail returns returns detailed information about a config map
func GetConfigMapDetail(client *client.Clientset, namespace, name string) (*ConfigMapDetail, error) {
	log.Printf("Getting details of %s config map in %s namespace", name, namespace)

	rawConfigMap, err := client.ConfigMaps(namespace).Get(name)

	if err != nil {
		return nil, err
	}

	return getConfigMapDetail(rawConfigMap), nil
}