diff --git a/pkg/router/util.go b/pkg/router/util.go index ad0f6902..fa498069 100644 --- a/pkg/router/util.go +++ b/pkg/router/util.go @@ -29,6 +29,9 @@ func includeLabelsByPrefix(labels map[string]string, includeLabelPrefixes []stri } func filterMetadata(meta map[string]string) map[string]string { + if meta == nil { + meta = map[string]string{} + } // prevent Flux from overriding Flagger managed objects meta[toolkitReconcileKey] = toolkitReconcileValue meta[helmDriftDetectionKey] = toolkitReconcileValue