Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate cred helper log spam #586

Merged
merged 1 commit into from
Feb 16, 2022
Merged

Conversation

imjasonh
Copy link
Member

@imjasonh imjasonh commented Feb 9, 2022

This picks up google/go-containerregistry#1284 to eliminate pkg/v1/google.Keychain spam, and awslabs/amazon-ecr-credential-helper#309 (not yet merged) to allow callers to eliminate ecr-login spam, which ko now does.

@imjasonh imjasonh mentioned this pull request Feb 16, 2022
@imjasonh imjasonh added this to the 0.10 milestone Feb 16, 2022
@imjasonh imjasonh force-pushed the patch-ecr-helper branch 2 times, most recently from 4059872 to c2ea76e Compare February 16, 2022 18:06
@imjasonh imjasonh changed the title WIP: eliminate cred helper log spam Eliminate cred helper log spam Feb 16, 2022
@imjasonh imjasonh marked this pull request as ready for review February 16, 2022 18:07
@imjasonh
Copy link
Member Author

The ecr-login PR has merged 🎉

This PR supercedes and includes the changes from #597 as it turns out

@jonjohnsonjr
Copy link
Collaborator

docker: Error response from daemon: hcsshim::CreateComputeSystem b0e1e7d0da21f466bb9430d7e75566c3792e551b324ae8c8d1f1e45bc739b813: The container operating system does not match the host operating system.

@imjasonh
Copy link
Member Author

docker: Error response from daemon: hcsshim::CreateComputeSystem b0e1e7d0da21f466bb9430d7e75566c3792e551b324ae8c8d1f1e45bc739b813: The container operating system does not match the host operating system.

Fixed by #599, I'll rebase

@imjasonh imjasonh merged commit 3fc720f into ko-build:main Feb 16, 2022
halvards added a commit to halvards/skaffold that referenced this pull request Mar 15, 2022
Use a new logrus.Logger instance instead of the default logrus
singleton.

Relying on the default singleton is problematic when dependencies (or
transitive dependencies) also use logrus. When code paths in these
dependencies modify the default singleton, it also impacts Skaffold
logging.

I ran into this issue while trying to upgrade the `ko` dependency to
v0.10, and there was unwanted error-level log output messages from
`amazon-ecr-credential-helper`.

Context:
- ko-build/ko#586
- awslabs/amazon-ecr-credential-helper#309

This change also moves us closer to not leaking the logger
implementation dependency outside the `output/log` package.

Tracking: GoogleContainerTools#7131
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants