|
| 1 | +# |
| 2 | +# Copyright (c) 2020-2024 Red Hat, Inc. |
| 3 | +# This program and the accompanying materials are made |
| 4 | +# available under the terms of the Eclipse Public License 2.0 |
| 5 | +# which is available at https://www.eclipse.org/legal/epl-2.0/ |
| 6 | +# |
| 7 | +# SPDX-License-Identifier: EPL-2.0 |
| 8 | +# |
| 9 | +schemaVersion: 2.3.0 |
| 10 | +metadata: |
| 11 | + name: web-terminal-operator |
| 12 | +components: |
| 13 | + - name: tools |
| 14 | + container: |
| 15 | + image: quay.io/wto/web-terminal-operator-devtools:latest |
| 16 | + memoryRequest: 1Gi |
| 17 | + memoryLimit: 16Gi |
| 18 | + cpuLimit: '4' |
| 19 | + cpuRequest: '0.5' |
| 20 | + env: |
| 21 | + - name: DOCKER |
| 22 | + value: podman |
| 23 | +commands: |
| 24 | + - id: build-and-push-controller |
| 25 | + exec: |
| 26 | + label: "1. Build and push WTO controller image" |
| 27 | + component: tools |
| 28 | + commandLine: | |
| 29 | + read -p "ENTER a container registry org to push the web-terminal-operator images (e.g. quay.io/janedoe): " WTO_IMG_REPO && |
| 30 | + read -p "ENTER the tag for the image (e.g. dev): " WTO_IMG_TAG && |
| 31 | + export WTO_IMG=${WTO_IMG_REPO}/web-terminal-operator:${WTO_IMG_TAG} && |
| 32 | + export BUNDLE_IMG=${WTO_IMG_REPO}/web-terminal-operator-metadata:${WTO_IMG_TAG} && |
| 33 | + export INDEX_IMG=${WTO_IMG_REPO}/web-terminal-operator-index:${WTO_IMG_TAG} && |
| 34 | + make build |
| 35 | + group: |
| 36 | + kind: build |
| 37 | + - id: install-operator |
| 38 | + exec: |
| 39 | + label: "2. Register CatalogSource and install the operator" |
| 40 | + component: tools |
| 41 | + commandLine: | |
| 42 | + read -p "ENTER a container registry org to use the web-terminal-operator images (e.g. quay.io/janedoe): " WTO_IMG_REPO && |
| 43 | + read -p "ENTER the tag for the image (e.g. dev): " WTO_IMG_TAG && |
| 44 | + export WTO_IMG=${WTO_IMG_REPO}/web-terminal-operator:${WTO_IMG_TAG} && |
| 45 | + export BUNDLE_IMG=${WTO_IMG_REPO}/web-terminal-operator-metadata:${WTO_IMG_TAG} && |
| 46 | + export INDEX_IMG=${WTO_IMG_REPO}/web-terminal-operator-index:${WTO_IMG_TAG} && |
| 47 | + make install |
| 48 | + group: |
| 49 | + kind: run |
| 50 | + |
| 51 | + - id: register-catalogsource |
| 52 | + exec: |
| 53 | + label: "3. Register CatalogSource only" |
| 54 | + component: tools |
| 55 | + commandLine: | |
| 56 | + read -p "ENTER a container registry org to push the web-terminal-operator images (e.g. quay.io/janedoe): " WTO_IMG_REPO && |
| 57 | + read -p "ENTER the tag for the image (e.g. dev): " WTO_IMG_TAG && |
| 58 | + export WTO_IMG=${WTO_IMG_REPO}/web-terminal-operator:${WTO_IMG_TAG} && |
| 59 | + export BUNDLE_IMG=${WTO_IMG_REPO}/web-terminal-operator-metadata:${WTO_IMG_TAG} && |
| 60 | + export INDEX_IMG=${WTO_IMG_REPO}/web-terminal-operator-index:${WTO_IMG_TAG} && |
| 61 | + make register_catalogsource |
| 62 | + group: |
| 63 | + kind: run |
| 64 | + |
| 65 | + - id: unregister-catalogsource |
| 66 | + exec: |
| 67 | + label: "4. Unregister CatalogSource" |
| 68 | + component: tools |
| 69 | + commandLine: make unregister_catalogsource |
| 70 | + group: |
| 71 | + kind: run |
| 72 | + |
| 73 | + - id: uninstall-operator |
| 74 | + exec: |
| 75 | + label: "5. Uninstall the Web Terminal Operator" |
| 76 | + component: tools |
| 77 | + commandLine: make uninstall |
| 78 | + group: |
| 79 | + kind: run |
0 commit comments