Skip to content

Commit ad1b622

Browse files
committed
fixup! ✨ clusterctl: Suppress API warnings in "move" command
Update after removal of deduplication in handler
1 parent 3020b96 commit ad1b622

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

util/apiwarnings/default.go

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,10 @@ func DomainQualifiedFinalizerWarning(domain string) *regexp.Regexp {
3737
// decisions made by the Cluster API project, but cannot be immediately
3838
// addressed, and are therefore not helpful to the user.
3939
func DefaultHandler(l logr.Logger) *DiscardMatchingHandler {
40-
return NewDiscardMatchingHandler(
41-
l,
42-
DiscardMatchingHandlerOptions{
43-
Deduplicate: true,
44-
Expressions: []regexp.Regexp{
45-
*DomainQualifiedFinalizerWarning(clusterv1.GroupVersion.Group),
46-
},
40+
return &DiscardMatchingHandler{
41+
Logger: l,
42+
Expressions: []regexp.Regexp{
43+
*DomainQualifiedFinalizerWarning(clusterv1.GroupVersion.Group),
4744
},
48-
)
45+
}
4946
}

0 commit comments

Comments
 (0)