Skip to content

Commit

Permalink
Merge pull request #1437 from pinkavaj/pi-fix-nil
Browse files Browse the repository at this point in the history
Fix panic when annotation of ingress is empty
  • Loading branch information
aryan9600 authored May 30, 2023
2 parents e71ce18 + d256487 commit d960666
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/router/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d960666

Please sign in to comment.