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

Clean up ECR credential patch #4549

Closed
jonjohnsonjr opened this issue Jun 27, 2019 · 7 comments · Fixed by #7344
Closed

Clean up ECR credential patch #4549

jonjohnsonjr opened this issue Jun 27, 2019 · 7 comments · Fixed by #7344
Labels
area/API API objects and controllers area/test-and-release It flags unit/e2e/conformance/perf test issues for product features kind/bug Categorizes issue or PR as related to a bug. kind/process Changes in how we work

Comments

@jonjohnsonjr
Copy link
Contributor

In #4084, we added a patch in order to backport some changes in kubernetes to fix #1996. Those changes landed in 1.15.

Once we are able to update our dependencies to 1.15, we can just drop that patch.

X-ref: google/go-containerregistry#355

/area API
/area test-and-release
/kind process

@jonjohnsonjr jonjohnsonjr added the kind/bug Categorizes issue or PR as related to a bug. label Jun 27, 2019
@knative-prow-robot knative-prow-robot added area/API API objects and controllers area/test-and-release It flags unit/e2e/conformance/perf test issues for product features kind/process Changes in how we work labels Jun 27, 2019
@mattmoor mattmoor added this to the Ice Box milestone Jun 28, 2019
@jonjohnsonjr
Copy link
Contributor Author

This got merged into 1.14, so we can drop it earlier 🎉

@toVersus
Copy link
Contributor

Hi, @jonjohnsonjr (cc. @mattmoor )

I encountered the following error while trying to deploy ksvcs on HEAD (995194b).

Unable to fetch image "xxxxxxxxxxxx.dkr.ecr.ap-northeast-1.amazonaws.com/rosetta-go/gateway:v0.4.0": unsupported status code 401; body: Not Authorized

I know we dropped this ECR credential patch in #5570 along with bumping up K8s toolchains to v1.15. However, it seems not to get to work on my EKS cluster (v1.14.6). I wonder if we need a little bit more works on solving this problem.

If my understanding is correct, do you have any plans for pushing those changes until v0.10 release date?

@jonjohnsonjr
Copy link
Contributor Author

I'm really confused by the #5570 diff. It looks like it changes the signature of LazyProvide back to a single parameter here, but the ECR credential fix requires this commit which changes LazyProvide to take two parameters, which was included in the patch...

@toVersus
Copy link
Contributor

toVersus commented Nov 5, 2019

I reverted back 1996.patch partially and it got to work fine as expected.

https://gist.github.com/toVersus/6a76477e6eb342499ea7242e5ed65a72

@jonjohnsonjr
Copy link
Contributor Author

That makes sense. I think this is actually impossible to fix until kubernetes/kubernetes#82396 is resolved. I can't update my dependency on kubernetes/kubernetes/pkg/credentialprovider upstream because go-containerregistry is using go modules, and kubernetes has intentionally broken anyone depending on packages under k/k/pkg by setting the go module version to v0.0.0. Trying to update yields:

go: k8s.io/kubernetes@v1.15.3 requires
	k8s.io/api@v0.0.0: reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0

We need to update this dependency upstream in go-containerregistry because of the breaking change (as in my comment) or carry a patch that fixes it (which this issue tracks cleaning up).

@knative-housekeeping-robot

Issues go stale after 90 days of inactivity.
Mark the issue as fresh by adding the comment /remove-lifecycle stale.
Stale issues rot after an additional 30 days of inactivity and eventually close.
If this issue is safe to close now please do so by adding the comment /close.

Send feedback to Knative Productivity Slack channel or file an issue in knative/test-infra.

/lifecycle stale

@knative-prow-robot knative-prow-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 7, 2020
@toVersus
Copy link
Contributor

toVersus commented Feb 7, 2020

/remove-lifecycle stale

@knative-prow-robot knative-prow-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 7, 2020
k4leung4 added a commit to k4leung4/serving that referenced this issue Mar 20, 2020
The patch from knative#4084 has been addressed.
Addresses knative#4549
knative-prow-robot pushed a commit that referenced this issue Mar 20, 2020
The patch from #4084 has been addressed.
Addresses #4549
@dprotaso dprotaso removed this from the Ice Box milestone Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/API API objects and controllers area/test-and-release It flags unit/e2e/conformance/perf test issues for product features kind/bug Categorizes issue or PR as related to a bug. kind/process Changes in how we work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants