Skip to content

Commit bbe03bf

Browse files
committed
Read updated configuration file
1 parent 4d0172b commit bbe03bf

File tree

1 file changed

+7
-1
lines changed
  • components/registry-facade/cmd

1 file changed

+7
-1
lines changed

components/registry-facade/cmd/run.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,13 @@ var runCmd = &cobra.Command{
155155
ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
156156
defer cancel()
157157

158-
err := reg.UpdateStaticLayer(ctx, cfg.Registry.StaticLayer)
158+
cfg, err := config.GetConfig(configPath)
159+
if err != nil {
160+
log.WithError(err).Warn("cannot reload configuration")
161+
return
162+
}
163+
164+
err = reg.UpdateStaticLayer(ctx, cfg.Registry.StaticLayer)
159165
if err != nil {
160166
log.WithError(err).Warn("cannot reload configuration")
161167
}

0 commit comments

Comments
 (0)