@@ -3,6 +3,7 @@ package v1
33import (
44 "github.com/cloudogu/k8s-blueprint-operator/pkg/domain"
55 "github.com/cloudogu/k8s-blueprint-operator/pkg/domain/common"
6+ "github.com/cloudogu/k8s-registry-lib/config"
67)
78
89type Config struct {
@@ -82,7 +83,7 @@ func convertToDoguConfigDTO(config domain.DoguConfig) DoguConfig {
8283 if len (config .Present ) != 0 {
8384 present = make (map [string ]string , len (config .Present ))
8485 for key , value := range config .Present {
85- present [key .Key ] = string (value )
86+ present [string ( key .Key ) ] = string (value )
8687 }
8788 }
8889
@@ -92,7 +93,7 @@ func convertToDoguConfigDTO(config domain.DoguConfig) DoguConfig {
9293 if len (config .Absent ) != 0 {
9394 absent = make ([]string , len (config .Absent ))
9495 for i , key := range config .Absent {
95- absent [i ] = key .Key
96+ absent [i ] = string ( key .Key )
9697 }
9798 }
9899
@@ -132,7 +133,7 @@ func convertToDoguConfigDomain(doguName string, config DoguConfig) domain.DoguCo
132133func convertToDoguConfigKeyDomain (doguName , key string ) common.DoguConfigKey {
133134 return common.DoguConfigKey {
134135 DoguName : common .SimpleDoguName (doguName ),
135- Key : key ,
136+ Key : config . Key ( key ) ,
136137 }
137138}
138139
@@ -143,7 +144,7 @@ func convertToSensitiveDoguConfigDTO(config domain.SensitiveDoguConfig) Sensitiv
143144 if len (config .Present ) != 0 {
144145 present = make (map [string ]string , len (config .Present ))
145146 for key , value := range config .Present {
146- present [key .Key ] = string (value )
147+ present [string ( key .Key ) ] = string (value )
147148 }
148149 }
149150
@@ -153,7 +154,7 @@ func convertToSensitiveDoguConfigDTO(config domain.SensitiveDoguConfig) Sensitiv
153154 if len (config .Absent ) != 0 {
154155 absent = make ([]string , len (config .Absent ))
155156 for i , key := range config .Absent {
156- absent [i ] = key .Key
157+ absent [i ] = string ( key .Key )
157158 }
158159 }
159160
@@ -193,7 +194,7 @@ func convertToSensitiveDoguConfigDomain(doguName string, config SensitiveDoguCon
193194func convertToSensitiveDoguConfigKeyDomain (doguName , key string ) common.SensitiveDoguConfigKey {
194195 return common.SensitiveDoguConfigKey {DoguConfigKey : common.DoguConfigKey {
195196 DoguName : common .SimpleDoguName (doguName ),
196- Key : key ,
197+ Key : config . Key ( key ) ,
197198 },
198199 }
199200}
0 commit comments