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
..at the deploy step, the pipeline library tries to do a
oc tag -n usernamespace --alias=true usernamespace/my-database:1.0.1 my-database:1.0.1
which fails because the imagestream in the usernamespace doesn't exist. Only my node app's image stream exists in the usernamespace. The .openshiftio/service.yaml wasn't processed as part of build which is why the image stream doesn't exist.
@sbose78 yes let us try passing resources to build API as a workaround. However as a user, somehow I'm not convinced about how deploy handles the service resources and as a side effect tagImage still could fail.
We can consider a couple of options to deploy services:
Annotation based processing: If deploy finds service: true annotation in ImageStream, DC/Deploy in resources then it can process those in a certain way.
How to manage that annotation? As a user, do I need to care about it?
Yes, it can be added manually by user or processTemplate, loadResources (need investigation) API
Add/Create dependent resources (ImageStream for instance) if not present deploy API
I was testing a Node + DB CRUD booster
https://github.com/sbose78/nodejs-rest-http-crud
The db was defined in
.openshiftio/service.yaml
While running the
cd
step which looked like this..at the
deploy
step, the pipeline library tries to do awhich fails because the
imagestream
in the usernamespace doesn't exist. Only my node app's image stream exists in the usernamespace. The.openshiftio/service.yaml
wasn't processed as part ofbuild
which is why the image stream doesn't exist.Do you think allowing
build
to do something likebuild resources: [resources, cm]
is a good idea?https://github.com/sbose78/osio-pipeline/blob/master/vars/build.groovy#L4
The text was updated successfully, but these errors were encountered: