From ef326b7ba9ce7d11164ab58b7648f8536b1d9e07 Mon Sep 17 00:00:00 2001 From: Alper Rifat Ulucinar Date: Wed, 13 Dec 2023 11:14:08 +0300 Subject: [PATCH] Remove the deprecated rand.Seed calls from the generated provider mains Signed-off-by: Alper Rifat Ulucinar --- cmd/provider/accesscontextmanager/zz_main.go | 2 -- cmd/provider/activedirectory/zz_main.go | 2 -- cmd/provider/alloydb/zz_main.go | 2 -- cmd/provider/apigee/zz_main.go | 2 -- cmd/provider/appengine/zz_main.go | 2 -- cmd/provider/artifact/zz_main.go | 2 -- cmd/provider/beyondcorp/zz_main.go | 2 -- cmd/provider/bigquery/zz_main.go | 2 -- cmd/provider/bigtable/zz_main.go | 2 -- cmd/provider/binaryauthorization/zz_main.go | 2 -- cmd/provider/certificatemanager/zz_main.go | 2 -- cmd/provider/cloud/zz_main.go | 2 -- cmd/provider/cloudbuild/zz_main.go | 2 -- cmd/provider/cloudfunctions/zz_main.go | 2 -- cmd/provider/cloudfunctions2/zz_main.go | 2 -- cmd/provider/cloudiot/zz_main.go | 2 -- cmd/provider/cloudplatform/zz_main.go | 2 -- cmd/provider/cloudrun/zz_main.go | 2 -- cmd/provider/cloudscheduler/zz_main.go | 2 -- cmd/provider/cloudtasks/zz_main.go | 2 -- cmd/provider/composer/zz_main.go | 2 -- cmd/provider/compute/zz_main.go | 2 -- cmd/provider/config/zz_main.go | 2 -- cmd/provider/container/zz_main.go | 2 -- cmd/provider/containeranalysis/zz_main.go | 2 -- cmd/provider/containeraws/zz_main.go | 2 -- cmd/provider/containerazure/zz_main.go | 2 -- cmd/provider/datacatalog/zz_main.go | 2 -- cmd/provider/dataflow/zz_main.go | 2 -- cmd/provider/datafusion/zz_main.go | 2 -- cmd/provider/datalossprevention/zz_main.go | 2 -- cmd/provider/dataplex/zz_main.go | 2 -- cmd/provider/dataproc/zz_main.go | 2 -- cmd/provider/datastore/zz_main.go | 2 -- cmd/provider/datastream/zz_main.go | 2 -- cmd/provider/dialogflowcx/zz_main.go | 2 -- cmd/provider/dns/zz_main.go | 2 -- cmd/provider/documentai/zz_main.go | 2 -- cmd/provider/essentialcontacts/zz_main.go | 2 -- cmd/provider/eventarc/zz_main.go | 2 -- cmd/provider/filestore/zz_main.go | 2 -- cmd/provider/firebaserules/zz_main.go | 2 -- cmd/provider/gke/zz_main.go | 2 -- cmd/provider/gkehub/zz_main.go | 2 -- cmd/provider/healthcare/zz_main.go | 2 -- cmd/provider/iam/zz_main.go | 2 -- cmd/provider/iap/zz_main.go | 2 -- cmd/provider/identityplatform/zz_main.go | 2 -- cmd/provider/kms/zz_main.go | 2 -- cmd/provider/logging/zz_main.go | 2 -- cmd/provider/memcache/zz_main.go | 2 -- cmd/provider/mlengine/zz_main.go | 2 -- cmd/provider/monitoring/zz_main.go | 2 -- cmd/provider/monolith/zz_main.go | 2 -- cmd/provider/networkconnectivity/zz_main.go | 2 -- cmd/provider/networkmanagement/zz_main.go | 2 -- cmd/provider/notebooks/zz_main.go | 2 -- cmd/provider/osconfig/zz_main.go | 2 -- cmd/provider/oslogin/zz_main.go | 2 -- cmd/provider/privateca/zz_main.go | 2 -- cmd/provider/pubsub/zz_main.go | 2 -- cmd/provider/redis/zz_main.go | 2 -- cmd/provider/secretmanager/zz_main.go | 2 -- cmd/provider/servicenetworking/zz_main.go | 2 -- cmd/provider/sourcerepo/zz_main.go | 2 -- cmd/provider/spanner/zz_main.go | 2 -- cmd/provider/sql/zz_main.go | 2 -- cmd/provider/storage/zz_main.go | 2 -- cmd/provider/storagetransfer/zz_main.go | 2 -- cmd/provider/tpu/zz_main.go | 2 -- cmd/provider/vertexai/zz_main.go | 2 -- cmd/provider/vpcaccess/zz_main.go | 2 -- cmd/provider/workflows/zz_main.go | 2 -- hack/main.go.tmpl | 2 -- 74 files changed, 148 deletions(-) diff --git a/cmd/provider/accesscontextmanager/zz_main.go b/cmd/provider/accesscontextmanager/zz_main.go index d419ab581..010bc064d 100644 --- a/cmd/provider/accesscontextmanager/zz_main.go +++ b/cmd/provider/accesscontextmanager/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_accesscontextmanager(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/activedirectory/zz_main.go b/cmd/provider/activedirectory/zz_main.go index 2b8b6fdd9..9cf57382e 100644 --- a/cmd/provider/activedirectory/zz_main.go +++ b/cmd/provider/activedirectory/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_activedirectory(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/alloydb/zz_main.go b/cmd/provider/alloydb/zz_main.go index 6956d5b1a..ca3573029 100644 --- a/cmd/provider/alloydb/zz_main.go +++ b/cmd/provider/alloydb/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_alloydb(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/apigee/zz_main.go b/cmd/provider/apigee/zz_main.go index af7a4e0e5..81907c7d2 100644 --- a/cmd/provider/apigee/zz_main.go +++ b/cmd/provider/apigee/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_apigee(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/appengine/zz_main.go b/cmd/provider/appengine/zz_main.go index 2b5de3b2f..02cf303c0 100644 --- a/cmd/provider/appengine/zz_main.go +++ b/cmd/provider/appengine/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_appengine(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/artifact/zz_main.go b/cmd/provider/artifact/zz_main.go index 2c5a70d8e..d352b30c3 100644 --- a/cmd/provider/artifact/zz_main.go +++ b/cmd/provider/artifact/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_artifact(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/beyondcorp/zz_main.go b/cmd/provider/beyondcorp/zz_main.go index 1a0dac4bc..6062244c5 100644 --- a/cmd/provider/beyondcorp/zz_main.go +++ b/cmd/provider/beyondcorp/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_beyondcorp(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/bigquery/zz_main.go b/cmd/provider/bigquery/zz_main.go index 478ad63a4..fa8dfb87d 100644 --- a/cmd/provider/bigquery/zz_main.go +++ b/cmd/provider/bigquery/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_bigquery(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/bigtable/zz_main.go b/cmd/provider/bigtable/zz_main.go index 73c5a90fd..dbeac8993 100644 --- a/cmd/provider/bigtable/zz_main.go +++ b/cmd/provider/bigtable/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_bigtable(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/binaryauthorization/zz_main.go b/cmd/provider/binaryauthorization/zz_main.go index ab3ff4958..433445493 100644 --- a/cmd/provider/binaryauthorization/zz_main.go +++ b/cmd/provider/binaryauthorization/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_binaryauthorization(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/certificatemanager/zz_main.go b/cmd/provider/certificatemanager/zz_main.go index 1f7d83a4a..81a7a2142 100644 --- a/cmd/provider/certificatemanager/zz_main.go +++ b/cmd/provider/certificatemanager/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_certificatemanager(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/cloud/zz_main.go b/cmd/provider/cloud/zz_main.go index f848d24e4..3aabb2d96 100644 --- a/cmd/provider/cloud/zz_main.go +++ b/cmd/provider/cloud/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_cloud(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/cloudbuild/zz_main.go b/cmd/provider/cloudbuild/zz_main.go index 95f2deef8..4701dc3b6 100644 --- a/cmd/provider/cloudbuild/zz_main.go +++ b/cmd/provider/cloudbuild/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_cloudbuild(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/cloudfunctions/zz_main.go b/cmd/provider/cloudfunctions/zz_main.go index 896ae2665..6609023fc 100644 --- a/cmd/provider/cloudfunctions/zz_main.go +++ b/cmd/provider/cloudfunctions/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_cloudfunctions(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/cloudfunctions2/zz_main.go b/cmd/provider/cloudfunctions2/zz_main.go index 91805d668..019af089d 100644 --- a/cmd/provider/cloudfunctions2/zz_main.go +++ b/cmd/provider/cloudfunctions2/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_cloudfunctions2(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/cloudiot/zz_main.go b/cmd/provider/cloudiot/zz_main.go index 36db8f73a..44607be1d 100644 --- a/cmd/provider/cloudiot/zz_main.go +++ b/cmd/provider/cloudiot/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_cloudiot(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/cloudplatform/zz_main.go b/cmd/provider/cloudplatform/zz_main.go index 69cf699c7..640ec5320 100644 --- a/cmd/provider/cloudplatform/zz_main.go +++ b/cmd/provider/cloudplatform/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_cloudplatform(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/cloudrun/zz_main.go b/cmd/provider/cloudrun/zz_main.go index 43cbe4b73..d7e01fe07 100644 --- a/cmd/provider/cloudrun/zz_main.go +++ b/cmd/provider/cloudrun/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_cloudrun(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/cloudscheduler/zz_main.go b/cmd/provider/cloudscheduler/zz_main.go index e68f051a4..7646a678b 100644 --- a/cmd/provider/cloudscheduler/zz_main.go +++ b/cmd/provider/cloudscheduler/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_cloudscheduler(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/cloudtasks/zz_main.go b/cmd/provider/cloudtasks/zz_main.go index e93d85c0d..5ae2115f0 100644 --- a/cmd/provider/cloudtasks/zz_main.go +++ b/cmd/provider/cloudtasks/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_cloudtasks(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/composer/zz_main.go b/cmd/provider/composer/zz_main.go index 2a772414e..c9066b417 100644 --- a/cmd/provider/composer/zz_main.go +++ b/cmd/provider/composer/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_composer(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/compute/zz_main.go b/cmd/provider/compute/zz_main.go index 04b1262b0..ab9d06e80 100644 --- a/cmd/provider/compute/zz_main.go +++ b/cmd/provider/compute/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_compute(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/config/zz_main.go b/cmd/provider/config/zz_main.go index 72402a434..4cd223b6c 100644 --- a/cmd/provider/config/zz_main.go +++ b/cmd/provider/config/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_config(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/container/zz_main.go b/cmd/provider/container/zz_main.go index f73a01e9f..ea8e29e3d 100644 --- a/cmd/provider/container/zz_main.go +++ b/cmd/provider/container/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_container(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/containeranalysis/zz_main.go b/cmd/provider/containeranalysis/zz_main.go index 762fe1258..4f0113b5f 100644 --- a/cmd/provider/containeranalysis/zz_main.go +++ b/cmd/provider/containeranalysis/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_containeranalysis(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/containeraws/zz_main.go b/cmd/provider/containeraws/zz_main.go index afae10f25..d6bc15ee4 100644 --- a/cmd/provider/containeraws/zz_main.go +++ b/cmd/provider/containeraws/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_containeraws(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/containerazure/zz_main.go b/cmd/provider/containerazure/zz_main.go index 8a96391fd..249607dd3 100644 --- a/cmd/provider/containerazure/zz_main.go +++ b/cmd/provider/containerazure/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_containerazure(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/datacatalog/zz_main.go b/cmd/provider/datacatalog/zz_main.go index 2d08c1b7c..5f40a33ad 100644 --- a/cmd/provider/datacatalog/zz_main.go +++ b/cmd/provider/datacatalog/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_datacatalog(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/dataflow/zz_main.go b/cmd/provider/dataflow/zz_main.go index 9f0423906..52191d93b 100644 --- a/cmd/provider/dataflow/zz_main.go +++ b/cmd/provider/dataflow/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_dataflow(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/datafusion/zz_main.go b/cmd/provider/datafusion/zz_main.go index 79ee81c67..b304b2b09 100644 --- a/cmd/provider/datafusion/zz_main.go +++ b/cmd/provider/datafusion/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_datafusion(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/datalossprevention/zz_main.go b/cmd/provider/datalossprevention/zz_main.go index 6ede0c472..ca7adac90 100644 --- a/cmd/provider/datalossprevention/zz_main.go +++ b/cmd/provider/datalossprevention/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_datalossprevention(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/dataplex/zz_main.go b/cmd/provider/dataplex/zz_main.go index 0fece1ae2..b8322e86b 100644 --- a/cmd/provider/dataplex/zz_main.go +++ b/cmd/provider/dataplex/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_dataplex(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/dataproc/zz_main.go b/cmd/provider/dataproc/zz_main.go index f440e22a5..1111b0ad8 100644 --- a/cmd/provider/dataproc/zz_main.go +++ b/cmd/provider/dataproc/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_dataproc(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/datastore/zz_main.go b/cmd/provider/datastore/zz_main.go index 6005c6149..af7e65f43 100644 --- a/cmd/provider/datastore/zz_main.go +++ b/cmd/provider/datastore/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_datastore(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/datastream/zz_main.go b/cmd/provider/datastream/zz_main.go index 0a5dd1ea7..f8b1442b7 100644 --- a/cmd/provider/datastream/zz_main.go +++ b/cmd/provider/datastream/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_datastream(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/dialogflowcx/zz_main.go b/cmd/provider/dialogflowcx/zz_main.go index 6f72b85d3..d7faac84c 100644 --- a/cmd/provider/dialogflowcx/zz_main.go +++ b/cmd/provider/dialogflowcx/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_dialogflowcx(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/dns/zz_main.go b/cmd/provider/dns/zz_main.go index da25dce7a..c153b6aa0 100644 --- a/cmd/provider/dns/zz_main.go +++ b/cmd/provider/dns/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_dns(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/documentai/zz_main.go b/cmd/provider/documentai/zz_main.go index 0ba0b7b3d..87c2279de 100644 --- a/cmd/provider/documentai/zz_main.go +++ b/cmd/provider/documentai/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_documentai(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/essentialcontacts/zz_main.go b/cmd/provider/essentialcontacts/zz_main.go index e277df412..a88177259 100644 --- a/cmd/provider/essentialcontacts/zz_main.go +++ b/cmd/provider/essentialcontacts/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_essentialcontacts(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/eventarc/zz_main.go b/cmd/provider/eventarc/zz_main.go index b17207054..bb37be1cb 100644 --- a/cmd/provider/eventarc/zz_main.go +++ b/cmd/provider/eventarc/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_eventarc(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/filestore/zz_main.go b/cmd/provider/filestore/zz_main.go index ce2cefd1e..9848ff5b4 100644 --- a/cmd/provider/filestore/zz_main.go +++ b/cmd/provider/filestore/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_filestore(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/firebaserules/zz_main.go b/cmd/provider/firebaserules/zz_main.go index 1f784c61e..d32915ff2 100644 --- a/cmd/provider/firebaserules/zz_main.go +++ b/cmd/provider/firebaserules/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_firebaserules(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/gke/zz_main.go b/cmd/provider/gke/zz_main.go index edccfa514..da2b0948a 100644 --- a/cmd/provider/gke/zz_main.go +++ b/cmd/provider/gke/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_gke(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/gkehub/zz_main.go b/cmd/provider/gkehub/zz_main.go index 58223854b..f9bd5ebbe 100644 --- a/cmd/provider/gkehub/zz_main.go +++ b/cmd/provider/gkehub/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_gkehub(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/healthcare/zz_main.go b/cmd/provider/healthcare/zz_main.go index b6736cd1c..a1dbfb908 100644 --- a/cmd/provider/healthcare/zz_main.go +++ b/cmd/provider/healthcare/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_healthcare(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/iam/zz_main.go b/cmd/provider/iam/zz_main.go index 70a6dce31..06076cf6a 100644 --- a/cmd/provider/iam/zz_main.go +++ b/cmd/provider/iam/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_iam(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/iap/zz_main.go b/cmd/provider/iap/zz_main.go index f11875664..2655d6e3d 100644 --- a/cmd/provider/iap/zz_main.go +++ b/cmd/provider/iap/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_iap(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/identityplatform/zz_main.go b/cmd/provider/identityplatform/zz_main.go index f90c652d5..2dc145c0c 100644 --- a/cmd/provider/identityplatform/zz_main.go +++ b/cmd/provider/identityplatform/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_identityplatform(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/kms/zz_main.go b/cmd/provider/kms/zz_main.go index b00151c69..e4d016262 100644 --- a/cmd/provider/kms/zz_main.go +++ b/cmd/provider/kms/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_kms(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/logging/zz_main.go b/cmd/provider/logging/zz_main.go index 9dee55fce..152426676 100644 --- a/cmd/provider/logging/zz_main.go +++ b/cmd/provider/logging/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_logging(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/memcache/zz_main.go b/cmd/provider/memcache/zz_main.go index 84a0bb23f..a4538dab0 100644 --- a/cmd/provider/memcache/zz_main.go +++ b/cmd/provider/memcache/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_memcache(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/mlengine/zz_main.go b/cmd/provider/mlengine/zz_main.go index 1ddd2241a..7c4ac6aaa 100644 --- a/cmd/provider/mlengine/zz_main.go +++ b/cmd/provider/mlengine/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_mlengine(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/monitoring/zz_main.go b/cmd/provider/monitoring/zz_main.go index 37aad3c62..6a4822aed 100644 --- a/cmd/provider/monitoring/zz_main.go +++ b/cmd/provider/monitoring/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_monitoring(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/monolith/zz_main.go b/cmd/provider/monolith/zz_main.go index 8875916be..fa1957953 100644 --- a/cmd/provider/monolith/zz_main.go +++ b/cmd/provider/monolith/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_monolith(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/networkconnectivity/zz_main.go b/cmd/provider/networkconnectivity/zz_main.go index 6bd4d9798..842025de6 100644 --- a/cmd/provider/networkconnectivity/zz_main.go +++ b/cmd/provider/networkconnectivity/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_networkconnectivity(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/networkmanagement/zz_main.go b/cmd/provider/networkmanagement/zz_main.go index c4a3f1a3f..361be548f 100644 --- a/cmd/provider/networkmanagement/zz_main.go +++ b/cmd/provider/networkmanagement/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_networkmanagement(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/notebooks/zz_main.go b/cmd/provider/notebooks/zz_main.go index 2ae86c273..668d00031 100644 --- a/cmd/provider/notebooks/zz_main.go +++ b/cmd/provider/notebooks/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_notebooks(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/osconfig/zz_main.go b/cmd/provider/osconfig/zz_main.go index 912e4cf6a..5c9bb49cf 100644 --- a/cmd/provider/osconfig/zz_main.go +++ b/cmd/provider/osconfig/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_osconfig(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/oslogin/zz_main.go b/cmd/provider/oslogin/zz_main.go index ecd57aacc..9d012d7b6 100644 --- a/cmd/provider/oslogin/zz_main.go +++ b/cmd/provider/oslogin/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_oslogin(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/privateca/zz_main.go b/cmd/provider/privateca/zz_main.go index e06cf1c16..72f4fd2aa 100644 --- a/cmd/provider/privateca/zz_main.go +++ b/cmd/provider/privateca/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_privateca(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/pubsub/zz_main.go b/cmd/provider/pubsub/zz_main.go index 4daa53b09..97bed64eb 100644 --- a/cmd/provider/pubsub/zz_main.go +++ b/cmd/provider/pubsub/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_pubsub(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/redis/zz_main.go b/cmd/provider/redis/zz_main.go index 6dae3c076..85832c812 100644 --- a/cmd/provider/redis/zz_main.go +++ b/cmd/provider/redis/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_redis(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/secretmanager/zz_main.go b/cmd/provider/secretmanager/zz_main.go index 133e912f2..bdecba41d 100644 --- a/cmd/provider/secretmanager/zz_main.go +++ b/cmd/provider/secretmanager/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_secretmanager(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/servicenetworking/zz_main.go b/cmd/provider/servicenetworking/zz_main.go index 1c0ee39af..58f93196a 100644 --- a/cmd/provider/servicenetworking/zz_main.go +++ b/cmd/provider/servicenetworking/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_servicenetworking(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/sourcerepo/zz_main.go b/cmd/provider/sourcerepo/zz_main.go index 1a9595009..9c71db775 100644 --- a/cmd/provider/sourcerepo/zz_main.go +++ b/cmd/provider/sourcerepo/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_sourcerepo(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/spanner/zz_main.go b/cmd/provider/spanner/zz_main.go index 4a46fd914..db0f22799 100644 --- a/cmd/provider/spanner/zz_main.go +++ b/cmd/provider/spanner/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_spanner(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/sql/zz_main.go b/cmd/provider/sql/zz_main.go index 07d09e31d..174ec2f93 100644 --- a/cmd/provider/sql/zz_main.go +++ b/cmd/provider/sql/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_sql(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/storage/zz_main.go b/cmd/provider/storage/zz_main.go index 4b5d39d23..1b26a6a82 100644 --- a/cmd/provider/storage/zz_main.go +++ b/cmd/provider/storage/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_storage(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/storagetransfer/zz_main.go b/cmd/provider/storagetransfer/zz_main.go index 1051038b8..087eabc4c 100644 --- a/cmd/provider/storagetransfer/zz_main.go +++ b/cmd/provider/storagetransfer/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_storagetransfer(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/tpu/zz_main.go b/cmd/provider/tpu/zz_main.go index 6c5c3c0b6..e0245e0f2 100644 --- a/cmd/provider/tpu/zz_main.go +++ b/cmd/provider/tpu/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_tpu(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/vertexai/zz_main.go b/cmd/provider/vertexai/zz_main.go index d6cade5f8..3acb7e64b 100644 --- a/cmd/provider/vertexai/zz_main.go +++ b/cmd/provider/vertexai/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_vertexai(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/vpcaccess/zz_main.go b/cmd/provider/vpcaccess/zz_main.go index fbd81db6e..5545fb1e6 100644 --- a/cmd/provider/vpcaccess/zz_main.go +++ b/cmd/provider/vpcaccess/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_vpcaccess(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/cmd/provider/workflows/zz_main.go b/cmd/provider/workflows/zz_main.go index b4e28f3ef..1142617f3 100644 --- a/cmd/provider/workflows/zz_main.go +++ b/cmd/provider/workflows/zz_main.go @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_workflows(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/hack/main.go.tmpl b/hack/main.go.tmpl index 3b20f5c36..087c02d24 100644 --- a/hack/main.go.tmpl +++ b/hack/main.go.tmpl @@ -18,7 +18,6 @@ package main import ( "context" - "math/rand" "os" "path/filepath" "time" @@ -170,7 +169,6 @@ func main() { })), "cannot create default store config") } - rand.Seed(time.Now().UnixNano()) kingpin.FatalIfError(controller.Setup_{{ .Group }}(mgr, o), "Cannot setup GCP controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") }