From 9d7b0b59bda256732e7cce507429a86983bc4049 Mon Sep 17 00:00:00 2001
From: Chance Zibolski <chance.zibolski@gmail.com>
Date: Tue, 26 Sep 2017 16:23:49 -0700
Subject: [PATCH] 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.
---
 storage/kubernetes/storage.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/storage/kubernetes/storage.go b/storage/kubernetes/storage.go
index 56a7dd89..1cb0fd07 100644
--- a/storage/kubernetes/storage.go
+++ b/storage/kubernetes/storage.go
@@ -85,6 +85,7 @@ func (c *Config) open(logger logrus.FieldLogger, errOnResources bool) (*client,
 
 	ctx, cancel := context.WithCancel(context.Background())
 
+	logger.Info("creating custom Kubernetes resources")
 	if !cli.registerCustomResources(c.UseTPR) {
 		if errOnResources {
 			cancel()
-- 
GitLab