-
Notifications
You must be signed in to change notification settings - Fork 101
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
third_party/ko: Add ko as third party tools #415
third_party/ko: Add ko as third party tools #415
Conversation
Hi @heylongdacoder. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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-sigs/prow repository. |
Hi @vladimirvivien, I just realized you were suggesting the BuildLocal function should build and publish to a local Docker. This PR is about ko and a KinD cluster. Since KinD is a popular way to test controllers and operators, I think this PR might be helpful. If so, maybe we can merge this PR first and then create another follow-up PR for the BuildLocal (Docker) and BuildRemote (Docker) functions. WDYT? 😄 |
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.
/ok-to-test
1dbbbcd
to
4ac0687
Compare
Add Install, BuildLocal and GetLocalImage functions. Signed-off-by: Wen Long <[email protected]>
4ac0687
to
1e04273
Compare
@heylongdacoder this is great. |
it looks great, just one question why not use |
+1 on @cpanato question. |
@vladimirvivien yes, you are right 😄
@cpanato @vladimirvivien , I never thought about this because other tools were installed and use via shell. But if we want to use |
+1 from me too. I like the idea of integrating this as a lib instead of the CLI. I have been using With this in place, I suppose there is going to be some guarantee on backward compatibility. That being said, Only concern I have is all the dependencies that will come along with ko into e2e-framework (framework has very little dependency outside of the k/* repo right now). Direct/transient. Do we see it leading to some issue in the future ? with the bin approach, we don't have to worry about that complication |
We should be able to chain the build call to the kind providers load image to get this working. Right ? @vladimirvivien |
+1 definitely nice to have! |
I think, for now, we can keep it as is. We have other tools that follow this approach. |
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.
/approve
/hold for @harshanarayana @vladimirvivien
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cpanato, heylongdacoder 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 |
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.
/lgtm
Thanks @heylongdacoder this is great. All good points raised here. Brining ko Go dependency could be overkill and since Kind uses OS commands, I think this is Ok as well. As @harshanarayana mentioned, I think it a user should be able to load the docker image in Kind. Maybe an example to show the whole cycle of build and load would be useful. |
https://github.com/kubernetes-sigs/e2e-framework/pull/415/files#diff-5e974e6375efb2beaa1644b28e57ba8e5c006b9dab1b47620b4edc24cd50d042R40, it is actually here. The KinD cluster is created in |
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.
LGTM
@harshanarayana i think this can go in.
/unhold |
thanks for all the review! |
Add Install, BuildLocal and GetLocalImage functions.
What type of PR is this?
/kind feature
What this PR does / why we need it:
Already explained in #343
Which issue(s) this PR fixes:
Partially addresses #343
Special notes for your reviewer:
N/A
Does this PR introduce a user-facing change?
Additional documentation e.g., Usage docs, etc.: