Commit fe2aee36 authored by Eric Chiang's avatar Eric Chiang Committed by GitHub

Merge pull request #1086 from coreos/chancez-patch-1

storage/kubernetes: Log before registering custom resources
parents 904c3fac 9d7b0b59
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment