diff --git a/cmd/controller-manager/controller-manager.go b/cmd/controller-manager/controller-manager.go index 37317de..af84010 100644 --- a/cmd/controller-manager/controller-manager.go +++ b/cmd/controller-manager/controller-manager.go @@ -1,9 +1,7 @@ package main import ( - "math/rand" "os" - "time" "k8s.io/component-base/cli" cliflag "k8s.io/component-base/cli/flag" @@ -19,8 +17,6 @@ import ( ) func main() { - rand.Seed(time.Now().UnixNano()) - ctx := controllerruntime.SetupSignalHandler() opts := options.NewClusterControllerManagerOptions() fss := cliflag.NamedFlagSets{} diff --git a/go.mod b/go.mod index 1ff9e28..f90eb2c 100644 --- a/go.mod +++ b/go.mod @@ -1,9 +1,9 @@ module github.com/karmada-io/multicluster-cloud-provider -go 1.19 +go 1.20 require ( - github.com/karmada-io/karmada v1.9.0-preview5.0.20240227142131-bc9316705c36 + github.com/karmada-io/karmada v1.9.0 github.com/pkg/errors v0.9.1 github.com/spf13/cobra v1.7.0 github.com/spf13/pflag v1.0.5 diff --git a/go.sum b/go.sum index 70ca349..bf25314 100644 --- a/go.sum +++ b/go.sum @@ -246,8 +246,8 @@ github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnr github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= -github.com/karmada-io/karmada v1.9.0-preview5.0.20240227142131-bc9316705c36 h1:ROH0MFo+/6LLp/QqJz3ePuAhvzjfFgBoPs0e/HM+DPc= -github.com/karmada-io/karmada v1.9.0-preview5.0.20240227142131-bc9316705c36/go.mod h1:oags1hCX1XzogohgXRPV4sLXB+RW6MCXBN8+ny0HfMk= +github.com/karmada-io/karmada v1.9.0 h1:Xr2GQEdZBIgDRBrdiArCFehLFJw1KtU/iB394SP8cl0= +github.com/karmada-io/karmada v1.9.0/go.mod h1:568vm0Rcn9MJaKhajDiFPDQ4Y9LxrfVjzEOek9UdFLg= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=