Fix imageStream for OKD4
webeos deployment currently not functional because of the references to BRANCH_NAME
in tag names.
As per https://gitlab.cern.ch/webservices/webframeworks-planning/issues/43 we want automated deployment of updates to an image rebuilt every week in GitLab CI.
So the proposal is to:
- get a Helm value with the upstream docker image tag to track (e.g.
GitLab-registry.cern.ch/webservices/webeos/webeos-container:prod
, for now use any available tag) - to set up the
imageStream
to automatically import tags from that upstream tag into thelatest
tag. Use scheduled imports so Openshift updates the imagestream automatically. - the webeos deployment should then have an ImageChangeTrigger on the
latest
tag of the imagestream. - NB: for future canary deployments, we can also support a second upstream docker image tag (e.g.
GitLab-registry.cern.ch/webservices/webeos/webeos-container:staging
) and import it into thecanary
tag of the imageStream