INNER CODE UNIT · Go
renewDeadline
backube/volsync · cmd/main.go:219
renewDeadline := 107 * time.Second
retryPeriod := 26 * time.Second
cfg := ctrl.GetConfigOrDie()
setupClient, err := client.New(cfg, client.Options{Scheme: scheme})
if err != nil {
setupLog.Error(err, "error creating client")
os.Exit(1)
}
// Create a context that can be cancelled when there is a need to shut down the manager .
ctx, cancel := context.WithCancel(ctrl.SetupSignalHandler())
// Ensure the context is cancelled when the program exits.
defer cancel()
// if the enable-http2 flag is false (the default), http/2 should be disabled
// due to its vulnerabilities. More specifically, disabling http/2 will
// prevent from being vulnerable to the HTTP/2 Stream Cancellation and