From 0abf03c7da524725c052934e4106ce71922e70d3 Mon Sep 17 00:00:00 2001 From: Tom Hayward Date: Wed, 17 Apr 2024 16:58:36 -0700 Subject: [PATCH] fix path in file changed detected message Signed-off-by: Tom Hayward --- internal/ingress/controller/nginx.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/ingress/controller/nginx.go b/internal/ingress/controller/nginx.go index f14f5feae..6eb3956ee 100644 --- a/internal/ingress/controller/nginx.go +++ b/internal/ingress/controller/nginx.go @@ -202,6 +202,7 @@ func NewNGINXController(config *Configuration, mc metric.Collector) *NGINXContro } for _, f := range filesToWatch { + f := f _, err = file.NewFileWatcher(f, func() { klog.InfoS("File changed detected. Reloading NGINX", "path", f) n.syncQueue.EnqueueTask(task.GetDummyObject("file-change"))