Openshift operator that handles integreatly tutorial-web-app deployments.
Project Info | |
---|---|
License: | Apache License, Version 2.0 |
IRC | #integreatly channel in the freenode network. |
#create required resources
make cluster/prepare
#deploys the operator itself
make -B cluster/deploy
#builds image: quay.io/integreatly/tutorial-web-app-operator:latest
make image/build
#custom image params: registry.io/myusername/image-name:dev
make image/build REG=custom-registry.io ORG=myusername IMAGE=image-name TAG=dev
make test/unit
Update web app image version in the following files:
- Update WebAppImage
WebAppImage = "quay.io/integreatly/tutorial-web-app:<version>"
- Image version that the deployment config gets reconciled to (Must be updated as would override the version used by the template)
- Update tutorial-web-app.yml template
image: quay.io/integreatly/tutorial-web-app:<version>
- Image version that gets deployed on initial processing of the template file
Update operator version files:
- Bump operator version
Version = "<version>"
- Bump makefile TAG
TAG=<version>
- Bump operator image version
image: quay.io/integreatly/tutorial-web-app-operator:v<version>
Commit changes and open a pull request to master.
When the PR is merged, create a new Github release from master for v e.g. v0.0.10. This will trigger a ci build of the tag, and a new image pushed to quay.io with that tag.