forked from devfile/devworkspace-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.devfile.yaml
39 lines (39 loc) · 1.64 KB
/
.devfile.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
schemaVersion: 2.2.0
metadata:
name: devworkspace-operator
components:
- name: tools
container:
image: quay.io/devfile/devworkspace-devtools:latest
memoryRequest: 1Gi
memoryLimit: 16Gi
cpuLimit: '4'
cpuRequest: '0.5'
commands:
- id: build-and-push-controller
exec:
label: "1. Build and push DWO controller image"
component: tools
commandLine: |
read -p "ENTER a container registry org to push the devworkspace-controller image (e.g. quay.io/janedoe): " DWO_IMG_REPO &&
read -p "ENTER the tag for the image (e.g. dev): " DWO_IMG_TAG &&
export DWO_IMG=${DWO_IMG_REPO}/devworkspace-controller:${DWO_IMG_TAG} &&
export DOCKER=podman &&
make docker
group:
kind: build
- id: make-olm-bundle-index-catalogsource
exec:
label: "2. Build and push OLM bundle, index image and create a CatalogueSource"
component: tools
commandLine: |
[[ "$(oc whoami)" =~ ^kube:admin$ ]] || (echo "You need to login as kubeadmin" && false) &&
read -p "ENTER a container registry org to push the devworkspace images (e.g. quay.io/janedoe): " DWO_IMG_REPO &&
read -p "ENTER a tag for the image (e.g. dev): " DWO_IMG_TAG &&
export DWO_BUNDLE_IMG=${DWO_IMG_REPO}/devworkspace-operator-bundle:${DWO_IMG_TAG} &&
export DWO_INDEX_IMG=${DWO_IMG_REPO}/devworkspace-operator-index:${DWO_IMG_TAG} &&
export DEFAULT_DWO_IMG=${DWO_IMG_REPO}/devworkspace-controller:${DWO_IMG_TAG} &&
export DOCKER=podman &&
make generate_olm_bundle_yaml build_bundle_and_index register_catalogsource
group:
kind: build