|
| 1 | +schemaVersion: 2.2.0 |
| 2 | +metadata: |
| 3 | + name: web-terminal-operator |
| 4 | +components: |
| 5 | + - name: tools |
| 6 | + container: |
| 7 | + image: quay.io/wto/web-terminal-operator-devtools:latest |
| 8 | + memoryRequest: 1Gi |
| 9 | + memoryLimit: 16Gi |
| 10 | + cpuLimit: '4' |
| 11 | + cpuRequest: '0.5' |
| 12 | + env: |
| 13 | + - name: DOCKER |
| 14 | + value: podman |
| 15 | +commands: |
| 16 | + - id: build-and-push-controller |
| 17 | + exec: |
| 18 | + label: "1. Build and push WTO controller image" |
| 19 | + component: tools |
| 20 | + commandLine: | |
| 21 | + read -p "ENTER a container registry org to push the web-terminal-operator images (e.g. quay.io/janedoe): " WTO_IMG_REPO && |
| 22 | + read -p "ENTER the tag for the image (e.g. dev): " WTO_IMG_TAG && |
| 23 | + export WTO_IMG=${WTO_IMG_REPO}/web-terminal-operator:${WTO_IMG_TAG} && |
| 24 | + export BUNDLE_IMG=${WTO_IMG_REPO}/web-terminal-operator-metadata:${WTO_IMG_TAG} && |
| 25 | + export INDEX_IMG=${WTO_IMG_REPO}/web-terminal-operator-index:${WTO_IMG_TAG} && |
| 26 | + make build |
| 27 | + group: |
| 28 | + kind: build |
| 29 | + - id: install-operator |
| 30 | + exec: |
| 31 | + label: "2. Register CatalogSource and install the operator" |
| 32 | + component: tools |
| 33 | + commandLine: | |
| 34 | + read -p "ENTER a container registry org to use the web-terminal-operator images (e.g. quay.io/janedoe): " WTO_IMG_REPO && |
| 35 | + read -p "ENTER the tag for the image (e.g. dev): " WTO_IMG_TAG && |
| 36 | + export WTO_IMG=${WTO_IMG_REPO}/web-terminal-operator:${WTO_IMG_TAG} && |
| 37 | + export BUNDLE_IMG=${WTO_IMG_REPO}/web-terminal-operator-metadata:${WTO_IMG_TAG} && |
| 38 | + export INDEX_IMG=${WTO_IMG_REPO}/web-terminal-operator-index:${WTO_IMG_TAG} && |
| 39 | + make install |
| 40 | + group: |
| 41 | + kind: run |
| 42 | + |
| 43 | + - id: register-catalogsource |
| 44 | + exec: |
| 45 | + label: "3. Register CatalogSource only" |
| 46 | + component: tools |
| 47 | + commandLine: | |
| 48 | + read -p "ENTER a container registry org to push the web-terminal-operator images (e.g. quay.io/janedoe): " WTO_IMG_REPO && |
| 49 | + read -p "ENTER the tag for the image (e.g. dev): " WTO_IMG_TAG && |
| 50 | + export WTO_IMG=${WTO_IMG_REPO}/web-terminal-operator:${WTO_IMG_TAG} && |
| 51 | + export BUNDLE_IMG=${WTO_IMG_REPO}/web-terminal-operator-metadata:${WTO_IMG_TAG} && |
| 52 | + export INDEX_IMG=${WTO_IMG_REPO}/web-terminal-operator-index:${WTO_IMG_TAG} && |
| 53 | + make register_catalogsource |
| 54 | + group: |
| 55 | + kind: run |
| 56 | + |
| 57 | + - id: unregister-catalogsource |
| 58 | + exec: |
| 59 | + label: "4. Unregister CatalogSource" |
| 60 | + component: tools |
| 61 | + commandLine: make unregister_catalogsource |
| 62 | + group: |
| 63 | + kind: run |
| 64 | + |
| 65 | + - id: uninstall-operator |
| 66 | + exec: |
| 67 | + label: "5. Uninstall the Web Terminal Operator" |
| 68 | + component: tools |
| 69 | + commandLine: make uninstall |
| 70 | + group: |
| 71 | + kind: run |
0 commit comments