Open sbose78 opened 5 years ago
@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:
1) 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
2) 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