func GetSecretFromCR(instance *sqlv1alpha1.PostgreSql) map[string][]string {
	secrets := make(map[string][]string)
	var names []string
	var keys []string
	for _, k := range instance.Spec.Users {
		names = append(names, k.Password.SecretKeyRef.Name)
		keys = append(keys, k.Password.SecretKeyRef.Key)
		for _, i := range names {
			secrets[i] = keys
		}
	}
	return secrets
}
//GetSecretFromCR stores secretKeyRefs on a map
GetSecretFromCR stores secretKeyRefs on a map
// GetSecretFromCR stores secretKeyRefs on a map
func GetSecretFromCR(instance *sqlv1alpha1.PostgreSql) map[string][]string {
	secrets := make(map[string][]string)
	var names []string
	var keys []string
	for _, k := range instance.Spec.Users {
		names = append(names, k.Password.SecretKeyRef.Name)
		keys = append(keys, k.Password.SecretKeyRef.Key)
		for _, i := range names {
			secrets[i] = keys
		}
	}
	return secrets
}
func GetSecretFromCR ( instance * sqlv1alpha1 . PostgreSql ) map [ string ] [ ] string { secrets := make ( map [ string ] [ ] string ) var names [ ] string var keys [ ] string for _ , k := range instance . Spec . Users { names = append ( names , k . Password . SecretKeyRef . Name ) keys = append ( keys , k . Password . SecretKeyRef . Key ) for _ , i := range names { secrets [ i ] = keys } } return secrets }
GetSecretFromCR stores secretKeyRefs on a map
GetSecretFromCR stores secretKeyRefs on a map