Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

integr8ly/tutorial-web-app-operator

Repository files navigation

tutorial-web-app-operator

Openshift operator that handles integreatly tutorial-web-app deployments.

Project Info
License: Apache License, Version 2.0
IRC #integreatly channel in the freenode network.

Deploying

#create required resources
make cluster/prepare
#deploys the operator itself
make -B cluster/deploy

Building

#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

Running tests

make test/unit

Updating Web App Image Version

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

Release

Update operator version files:

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.