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

upgrade go container registry to latest master #1146

Merged
merged 2 commits into from
Mar 24, 2020

Conversation

tejal29
Copy link
Contributor

@tejal29 tejal29 commented Mar 18, 2020

Fixes #1144

Ran

go get -u github.com/google/go-containerregistry
go mod tidy

@googlebot googlebot added the cla: yes CLA signed by all commit authors label Mar 18, 2020
@tejal29 tejal29 requested a review from mattmoor March 18, 2020 22:02
@tejal29
Copy link
Contributor Author

tejal29 commented Mar 18, 2020

@mattmoor Feel free to build the kaniko executor image with the instructions below to proceed with your testing.

REGISTRY=<you registry> make images

@mattmoor
Copy link
Collaborator

Things look kinda broken. Should I wait?

@tejal29
Copy link
Contributor Author

tejal29 commented Mar 18, 2020

Things look kinda broken. Should I wait?

yep sorry, i missed to add the vendor/modules.txt changes.

@tejal29
Copy link
Contributor Author

tejal29 commented Mar 18, 2020

@samos123
Copy link
Contributor

it shouldn't have run K8s tests in that test run, for some reason the TestK8s wasn't excluded correctly. I'm looking into it more.

@samos123
Copy link
Contributor

It's weird, this PR worked fine and also ran K8s tests separately: https://travis-ci.org/github/GoogleContainerTools/kaniko/builds/664580845?utm_source=github_status&utm_medium=notification. So not sure what's different here and why -list=Test is not returning the correct output...

@samos123
Copy link
Contributor

I restarted that specific job and it now succeeded, for some reason the make integration-test-misc script ran all tests instead of only the misc tests and I still don't know why.

@mattmoor
Copy link
Collaborator

@tejal29 if this is ready for me to try out, I will do that tomorrow?

@mattmoor
Copy link
Collaborator

@tejal29 tl;dr success!

I built this image and copied it to docker.io/mattmoor/kaniko:tejal and ran it via the Tekton task on EKS with the following setup:

# Cluster must have oidc enabled:
eksctl utils associate-iam-oidc-provider --name knative-aws --approve

# Create service account with:
eksctl create iamserviceaccount \
  --name builder \
  --namespace default \
  --cluster knative-aws \
  --attach-policy-arn arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryPowerUser \
  --approve

I then ran the Tekton TaskRun as the service account builder that the above creates, and it worked great!

@tejal29 tejal29 merged commit d5d20b6 into GoogleContainerTools:master Mar 24, 2020
@tejal29
Copy link
Contributor Author

tejal29 commented Mar 24, 2020

great Thanks @mattmoor. I will probably release this in v0.20.0 and let you know when its released.

@mattmoor
Copy link
Collaborator

Perfect, thanks!

@mattmoor
Copy link
Collaborator

Maybe worth a PR to the tekton Catalog when that comes out? tektoncd/catalog#235

@Vlatombe Vlatombe mentioned this pull request Mar 24, 2020
4 tasks
@tejal29 tejal29 deleted the up_ggcr branch April 26, 2021 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes CLA signed by all commit authors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pick up latest GGCR
4 participants