-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Update k8schain #4488
Update k8schain #4488
Conversation
Something weird is happening with k8schain hanging trying to pull from a local registry. I added some test code to just pull the pipeline image:
...and it blocks for minutes before eventually failing and proceeding with anonymous auth (which succeeds):
The log line is a bit of a red herring, it's just telling us that |
This sounds a lot like the behaviour from #4087 If you try wrapping it in a runtime trace I am curious if you will see a similar thing as we did in that issue - a series of very long |
Tracked the problematic behavior to the ACR cred helper, with a fix proposed in chrismellard/docker-credential-acr-env#2 With this change, the test passes as expected: imjasonh/pipeline@k8schain...imjasonh:k8schain-with-fix |
Update: the ACR cred helper PR has merged 🎉 , and google/go-containerregistry#1247 is now open to bring it in to k8schain -- as before, with that PR When that merges I'll remove the |
``` * use go 1.17 semantics in go.mod go get -u github.com/google/go-containerregistry/pkg/authn/k8schain@main * revert k8s upgade that breaks knative/pkg * undo go 1.17 change in go.mod ./hack/update-deps.sh ```
/test pull-tekton-pipeline-integration-tests |
All the dependent PRs are merged, this should be ready to go now. 🚀 |
/lgtm |
Tested locally without the AWS_ env vars in the controller config and didn't see a ten minute slowdown on the first TaskRun execution. Nice work! I think we can safely remove those again. For reference I used the One thing I did notice is the following log line printed with each taskrun execution. It would be awesome if it didnt print this but I don't think it's a blocker at all:
|
Yeah I've also been a bit annoyed by that. I might try to fix this either in ggcr or upstream in the ecr-login cred helper. Until then it's just noisy and not (usually!) indicative of a real error. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Changes
This picks up a change to k8schain that drops a dependency on forked K8s
cred providers nominally maintained by Vincent.
See google/go-containerregistry#1234
/kind cleanup
/assign vdemeester
/assign sbwsg
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
Release Notes