You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since MCO and MCC are strictly related, it would be appropriate to fold all our images into just one to avoid falling into bugs and error whenever the build system isn't properly setup and could lead to different images being built from different commits.
This requires changes at least to:
installer's bootkube
mco itself
To expand on the above, this should be done in 2 steps to avoid any breakage (and we need to think about backwards compatibility as well):
tweak bootkube to accept the MCO image itself (requires a PR in MCO to add a new flag for the MCO image, then a PR in the installer for bootkube to pass it)
change Dockerfiles to build all binaries into a single image here in MCO
A preparatory step for this is probably to go to a single binary (hypermco) too right? Otherwise we're wasting a lot of space. But I guess it's not required.
I was thinking of this more like:
Change e.g. Dockerfile.machine-config-operator to put all the binaries inside there
Change our manifests to launch that image, overriding the command (i.e. ENTRYPOINT) for everything except the operator
Now we have a single image running in the cluster by default; no other PRs to installer required right?
But we are building 3 unnecessary images, so the remaining work would be similar to your outline. I suspect we'd also need patches to the release controller and ART's configuration to delete builds?
I suspect we'd also need patches to the release controller and ART's configuration to delete builds?
yep, that's gonna be a required thing anyway.
I was thinking of this more like:
Change e.g. Dockerfile.machine-config-operator to put all the binaries inside there
Drop the default ENTRYPOINT, change our manifests to launch that image
The thing is bootkube needs to have plumbing for that MCO image as well (we're currently just passing the MCC/MCD/MCS image names to the render routine, now we'll need another one, the MCO one since that's currently just substituted by oc adm release new)
Though I think we could also use the downward API to inspect our own pod's container image or so?
we could also yeah - I thought about going the proper way through bootkube as this is not something we'll block the next release on so we might as well just do it through bootkube
Activity
runcom commentedon May 31, 2019
I've expanded the points above to something clearer now
runcom commentedon Jun 12, 2019
@cgwalters ptal
cgwalters commentedon Jun 12, 2019
A preparatory step for this is probably to go to a single binary (
hypermco) too right? Otherwise we're wasting a lot of space. But I guess it's not required.I was thinking of this more like:
Dockerfile.machine-config-operatorto put all the binaries inside therecommand(i.e.ENTRYPOINT) for everything except the operatorNow we have a single image running in the cluster by default; no other PRs to installer required right?
But we are building 3 unnecessary images, so the remaining work would be similar to your outline. I suspect we'd also need patches to the release controller and ART's configuration to delete builds?
runcom commentedon Jun 12, 2019
yep, that's gonna be a required thing anyway.
The thing is bootkube needs to have plumbing for that MCO image as well (we're currently just passing the MCC/MCD/MCS image names to the render routine, now we'll need another one, the MCO one since that's currently just substituted by
oc adm release new)cgwalters commentedon Jun 12, 2019
If we don't change the
ENTRYPOINTthen the behavior of the MCO image inbootkube.shshouldn't require changes right? I edited my suggestion above.runcom commentedon Jun 12, 2019
yes, maybe I'm wrong, but the image names must be plumbed anyway through i.e. https://github.com/openshift/installer/blob/master/data/data/bootstrap/files/usr/local/bin/bootkube.sh.template#L199 to be rendered in the manifest for the other subcomponents - that's why I thought we needed changes in bootkube also because right now the MCO image isn't known by the operator
runcom commentedon Jun 12, 2019
Something like this:
so that we can render the subcomponents manifests with that (single) image
maybe I'm overlooking something obvious tho
cgwalters commentedon Jun 12, 2019
Oh sorry I see! Right. Yes. Though I think we could also use the downward API to inspect our own pod's container image or so?
runcom commentedon Jun 12, 2019
we could also yeah - I thought about going the proper way through bootkube as this is not something we'll block the next release on so we might as well just do it through bootkube
50 remaining items
runcom commentedon Jul 12, 2019
yep 👍
update dockerfiles in mco images/ose...ymls
fold images: remove stale mc* images in install/image-references
add mco image flag to bootstrap.go
Create a single MCO image containing all MC* binaries
cmd/mco: remove required flags for mco component images
update operator.go/bootstrap.go to remove setup etcd env
add new master Dockerfiles with finalized names
update push-image.sh to use new single mco image
update hacking.md to reflect new commands
remove refs to component images
remove component mcc/mcd/mcs/setupetcd dockerfiles
remove component mcc/mcd/mco/mcs/setupetcdenv rhel7 dockerfiles
fold images: remove stale mc* images in install/image-references