Skip to content

Commit

Permalink
k8s: make the local registry discovery errors debug logs for now. the…
Browse files Browse the repository at this point in the history
…y're not really actionable yet (#3608)
  • Loading branch information
nicks committed Jul 23, 2020
1 parent 7f9b4ed commit b46f15f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/k8s/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (r *registryAsync) inferRegistryFromNodeAnnotations(ctx context.Context) co
func (r *registryAsync) inferRegistryFromConfigMap(ctx context.Context) (registry container.Registry, help string) {
hosting, err := localregistry.Discover(ctx, r.core)
if err != nil {
logger.Get(ctx).Warnf("Local registry discovery error: %v", err)
logger.Get(ctx).Debugf("Local registry discovery error: %v", err)
return container.Registry{}, ""
}

Expand All @@ -159,7 +159,7 @@ func (r *registryAsync) inferRegistryFromConfigMap(ctx context.Context) (registr
registry, err = container.NewRegistryWithHostFromCluster(
hosting.Host, hosting.HostFromContainerRuntime)
if err != nil {
logger.Get(ctx).Warnf("Local registry discovery error: %v", err)
logger.Get(ctx).Debugf("Local registry discovery error: %v", err)
return container.Registry{}, hosting.Help
}
return registry, hosting.Help
Expand Down

0 comments on commit b46f15f

Please sign in to comment.