Skip to content
Snippets Groups Projects
Commit 9d7b0b59 authored by Chance Zibolski's avatar Chance Zibolski Committed by GitHub
Browse files

storage/kubernetes: Log before registering custom resources

Logging before attempting to make any connection to Kubernetes is useful when the connection hangs and dex is killed before it can log any errors.
parent 904c3fac
No related branches found
No related tags found
No related merge requests found
...@@ -85,6 +85,7 @@ func (c *Config) open(logger logrus.FieldLogger, errOnResources bool) (*client, ...@@ -85,6 +85,7 @@ func (c *Config) open(logger logrus.FieldLogger, errOnResources bool) (*client,
ctx, cancel := context.WithCancel(context.Background()) ctx, cancel := context.WithCancel(context.Background())
logger.Info("creating custom Kubernetes resources")
if !cli.registerCustomResources(c.UseTPR) { if !cli.registerCustomResources(c.UseTPR) {
if errOnResources { if errOnResources {
cancel() cancel()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment