Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the deprecated rand.Seed calls from the generated provider mains
Browse files Browse the repository at this point in the history
Signed-off-by: Alper Rifat Ulucinar <[email protected]>
ulucinar committed Dec 13, 2023

Verified

This commit was signed with the committer’s verified signature.
andrewnester Andrew Nester
1 parent 0a87402 commit ef326b7
Showing 74 changed files with 0 additions and 148 deletions.
2 changes: 0 additions & 2 deletions cmd/provider/accesscontextmanager/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/activedirectory/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/alloydb/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/apigee/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/appengine/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/artifact/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/beyondcorp/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/bigquery/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/bigtable/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/binaryauthorization/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/certificatemanager/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/cloud/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/cloudbuild/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/cloudfunctions/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/cloudfunctions2/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/cloudiot/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/cloudplatform/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/cloudrun/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/cloudscheduler/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/cloudtasks/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/composer/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/compute/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/config/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/container/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
2 changes: 0 additions & 2 deletions cmd/provider/containeranalysis/zz_main.go
Original file line number Diff line number Diff line change
@@ -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")
}
Loading

0 comments on commit ef326b7

Please sign in to comment.