Skip to content

Commit

Permalink
fix: insecureRegistry
Browse files Browse the repository at this point in the history
(cherry picked from commit a2dba2d)
  • Loading branch information
steiler authored and carlmontanari committed Oct 15, 2023
1 parent ae4ab1e commit 30d4f27
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion clabverter/clabverter.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,19 @@ func MustNewClabverter(
logLevel,
)

// trim insecureRegistries and split into array if not empty
var insecureRegistriesArr []string
if len(strings.TrimSpace(insecureRegistries)) > 0 {
insecureRegistriesArr = strings.Split(insecureRegistries, ",")
}

return &Clabverter{
logger: clabverterLogger,
topologyFile: topologyFile,
outputDirectory: outputDirectory,
stdout: stdout,
destinationNamespace: destinationNamespace,
insecureRegistries: strings.Split(insecureRegistries, ","),
insecureRegistries: insecureRegistriesArr,
startupConfigConfigMaps: make(map[string]topologyConfigMapTemplateVars),
extraFilesConfigMaps: make(map[string][]topologyConfigMapTemplateVars),
renderedFiles: []renderedContent{},
Expand Down

0 comments on commit 30d4f27

Please sign in to comment.