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 Sep 11, 2024
1 parent f77a3a1 commit 652434e
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 652434e

Please sign in to comment.