diff --git a/cmd/manager/main.go b/cmd/manager/main.go index fce0dd8ad..b9c855a7a 100644 --- a/cmd/manager/main.go +++ b/cmd/manager/main.go @@ -319,11 +319,13 @@ func (f finalizerFunc) Finalize(ctx context.Context, obj client.Object) (crfinal func authFilePathIfPresent(logger logr.Logger) string { _, err := os.Stat(authFilePath) if os.IsNotExist(err) { + logger.Info("auth file not found, skipping configuration of global auth file", "path", authFilePath) return "" } if err != nil { - logger.Error(err, "could not stat auth file path", "path", authFilePath) + logger.Error(err, "unable to access auth file path", "path", authFilePath) os.Exit(1) } + logger.Info("auth file found, configuring globally for image registry interactions", "path", authFilePath) return authFilePath }