Skip to content

Commit

Permalink
fixup! ✨ clusterctl: Suppress API warnings in "move" command
Browse files Browse the repository at this point in the history
Update after removal of deduplication in handler
  • Loading branch information
dlipovetsky committed Sep 17, 2024
1 parent 3020b96 commit ad1b622
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions util/apiwarnings/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,10 @@ func DomainQualifiedFinalizerWarning(domain string) *regexp.Regexp {
// decisions made by the Cluster API project, but cannot be immediately
// addressed, and are therefore not helpful to the user.
func DefaultHandler(l logr.Logger) *DiscardMatchingHandler {
return NewDiscardMatchingHandler(
l,
DiscardMatchingHandlerOptions{
Deduplicate: true,
Expressions: []regexp.Regexp{
*DomainQualifiedFinalizerWarning(clusterv1.GroupVersion.Group),
},
return &DiscardMatchingHandler{
Logger: l,
Expressions: []regexp.Regexp{
*DomainQualifiedFinalizerWarning(clusterv1.GroupVersion.Group),
},
)
}
}

0 comments on commit ad1b622

Please sign in to comment.