-
Notifications
You must be signed in to change notification settings - Fork 410
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
HACKING.md: add docs for iterating without building images #189
Conversation
/lgtm |
Doing this required a two-step process by default since the Offhand I think though it'd combine the advantages of both to have a flow that just copied the built binary in the worktree on top of the existing container using unpriv podman, and then pushed it into the cluster's registry and updated the ds? |
Ahh yeah, one of my first steps after setting up a cluster is:
Yeah, that'd probably be cleaner since it'd avoid having to kill the MCO. |
Just following this PR bc it would make my life easier 👍 |
OK I started on this today:
Going to work on it some more tomorrow. |
OK so this ssh proxy thing is a hack and isn't working for me now I think due to needing to be in the container network, not the host. I guess what we really want here is a router for libvirt? |
OK so oc proxy seems like it'd help but |
Current script:
|
Oh neat, didn't know that existed! Hmm, I was going to suggest just exposing the registry instead but that's not straightforward either.
Unlikely, but could |
OK, I really find the existing hacking flow to be far too painful to deal with. This patch is about a faster flow for the MCD, which would help me a lot, although for what I'm hacking on I needed to change the MCC too. So...how about adding a new script which is:
Which does a build, image push, and also edits the configmap json to deploy it? |
@jlebon: PR needs rebase. 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. |
I spent a little bit more time playing with this after seeing this comment about libvirt+console. It was easy to extend that to expose the registry, and pushing to it worked! I pushed to the Another stumbling block is the long lag times I see after updating the images configmap; it'd be really nice if it was basically instant. Restarting the operator seems to take 2 minutes for leader election. |
Rebase required. |
That's pretty neat! Would you mind opening a separate PR describing this and we can close this one? Even with the lag time, this is still less annoying than the current workflow and less hacky than mine. Alternatively, I guess we can get this patch in and you can work in this new path later? |
OK, rebased and added a few more details! ⬆️ |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, jlebon 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 |
/test e2e-aws |
3 similar comments
/test e2e-aws |
/test e2e-aws |
/test e2e-aws |
/test e2e-aws |
No description provided.