Skip to content

Commit

Permalink
support controller-runtime 0.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
YZ775 committed Aug 19, 2024
1 parent 42d6033 commit d2a05f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion controllers/mysqlcluster_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
"k8s.io/utils/ptr"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/config"
metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server"
)

Expand Down Expand Up @@ -111,9 +112,11 @@ var _ = Describe("MySQLCluster reconciler", func() {
Metrics: metricsserver.Options{
BindAddress: "0",
},
Controller: config.Controller{
SkipNameValidation: ptr.To(true),
},
})
Expect(err).ToNot(HaveOccurred())

mockMgr = &mockManager{
clusters: make(map[string]struct{}),
}
Expand Down

0 comments on commit d2a05f8

Please sign in to comment.