Skip to content

Commit

Permalink
Fixes crashloop caused by cert gen
Browse files Browse the repository at this point in the history
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
  • Loading branch information
ritazh committed Feb 4, 2020
1 parent 72860b1 commit 6d6bf74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ func main() {
os.Exit(1)
}

/// give the cert manager time to generate the cert
time.Sleep(5 * time.Second)

setupLog.Info("setting up audit")
if err := audit.AddToManager(mgr, client); err != nil {
setupLog.Error(err, "unable to register audit to the manager")
Expand Down

0 comments on commit 6d6bf74

Please sign in to comment.