-
Notifications
You must be signed in to change notification settings - Fork 461
local dev/hacking improvements #982
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
local dev/hacking improvements #982
Conversation
The high level goal is that I can run `./hack/cluster-push.sh` and have it automatically do a build only if necessary. I feel like I'm reinventing something here but...eh. I don't want to build the image every time, and I also don't want to run stale images. Use the git hash as change detection. Note this doesn't properly handle dirty trees yet.
|
Side note: One thing I struggled with for a bit is that our existing docs encourage pushing to Probably for most people with this workflow, it all works fine because your are probably keeping your For OpenShift developers we could work around this probably by encouraging pushing dev images to But really I think it's silly to push dev container images to a public registry when really we can push to the in-cluster registry...except what that runs straight up against is the self-signed router by default, which gets into #496 ... it'd really be nice though if we made it super convenient to use Let's Encrypt or so. |
kikisdeliveryservice
left a comment
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.
a couple of comments
hack/build-image
Outdated
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.
python!! 😄
- Bump Fedora versions - Drop libvirt stuff for now since most of us aren't using it and it's slightly special, may re-add later - Note to use the 4.2 CI builds etc.
2af72f3 to
ad89df3
Compare
|
Updated the doc per comments |
|
/approve |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, LorbusChris, runcom The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Using this some more, I now notice it's doing which triggers a master rollout. Something to fix later. |
The image building script in MCO was renamed and changed to only rebuild image based on the git index, meaning we have to commit changes to git in order to test something. I find this new behavior rather annoying in a dev workflow and changed our script to use podman build/push instead. See openshift/machine-config-operator#982 for the upstream changes.
This fixes the
./hack/cluster.pushscript to replace all MCO components rather than accepting aWHATsince...a lot of nontrivial changes require doing all of them, and since we have a uni-image we might as well now!The
build-imagescript changes apply to both the "cluster push fast-path" as well as the "new release image" path.The
HACKING.mddoc is updated for the above and more.