-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Adding Git Buildcontext #332
Conversation
Hi @vkartik97. Thanks for your PR. I'm waiting for a GoogleContainerTools member to verify that this patch is reasonable to test. If it is, they should reply with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hey @vkartik97 , thanks for contributing! This looks good, could you add an integration test for this? The steps would be:
Instructions for running the integration tests locally can be found here. Let me know if you have any questions! |
Hi @priyawadhwa
|
Hey @vkartik97,
|
Hey @vkartik97, how is this going? Alternatively, we could also merge this PR and I could write an integration up for it afterwards. |
@priyawadhwa |
@vkartik97 this is looking good! Just one more thing to add. The integraiton tests work by building a Dockerfile with kaniko and with Docker, and then comparing the images. You just need to change the Docker-built image to point to the same repository as well, the source context for that is here Right now it assumes the current directory, so you'll just have to add some code to change it to point to the repo if building the git Dockerfile. |
@priyawadhwa |
@priyawadhwa Please review |
Hey @vkartik97 sorry for the late response, I think this needs another rebase. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your quick rebase! It's looking good, I just left a couple comments and we should be all set.
@priyawadhwa Please review! |
@priyawadhwa |
Hey @vkartik97 thanks for the ping, sorry for the delay! I can look into the kokoro failure -- would you mind if I pushed a few changes to this branch once I figure out what's wrong? |
No issues, and thanks for helping me here ! |
Hey @vkartik97 , could you give me permission to push to this PR? Instructions here. Thanks! |
@priyawadhwa Done |
Hey @vkartik97 -- I'm not sure why but I still don't have permission to push to your branch. Instead, I've pushed a branch here built off of yours with a couple changes to integration_test.go and images.go. I also delete Dockerfile_test_git (looks like we don't actually need it). That commit is here. Would you be able to incorporate those changes and push them yourself? |
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the ℹ️ Googlers: Go here for more info. |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
@priyawadhwa please review |
Can we get this along? |
@vkartik97 are you still working on this? It looks like during rebasing some additional files may have been added (Dockerfiles that aren't related to this PR). It may be easiest to open a new PR with just the changes in the branch I mentioned earlier, instead of trying to fix the current commit history. WDYT? |
@priyawadhwa Yes, I am still working on this. |
@priyawadhwa Opened new PR #672 |
Fixes #269
Added Feature to use Git Repository as Build Context, using
--context
flag.Private Repositories can also be used by using Personal Access Tokens.