-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathdevspace.yaml
More file actions
69 lines (64 loc) · 1.78 KB
/
Copy pathdevspace.yaml
File metadata and controls
69 lines (64 loc) · 1.78 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: v2beta1
name: monitoring-plugin
vars:
PLUGIN:
question: "Which deployment do you want to develop? (mp = monitoring-plugin/CMO, mcp = monitoring-console-plugin/COO)"
default: mp
noCache: true
options:
- mp
- mcp
pipelines:
dev:
run: |-
if [ "${PLUGIN}" = "mcp" ]; then
echo "==> Installing COO (if not already present)..."
./hack/install-coo.sh
echo "==> Applying UIPlugin CR with all features enabled..."
./hack/create-uiplugin.sh
echo "==> Scaling down COO..."
./hack/scale-down-coo.sh
start_dev app-mcp
else
echo "==> Scaling down CMO..."
./hack/scale-down-cmo.sh
start_dev app-mp
fi
purge:
run: |-
stop_dev --all
if [ "${PLUGIN}" = "mp" ]; then
./hack/scale-up-cmo.sh
else
./hack/scale-up-coo.sh
fi
dev:
app-mp:
namespace: openshift-monitoring
labelSelector:
app.kubernetes.io/component: monitoring-plugin
devImage: quay.io/openshift-observability-ui/monitoring-plugin:devspace-5.0
sync:
- path: ./web/dist:/opt/app-root/web/dist
startContainer: true
command: ["make"]
args: ["start-devspace-backend"]
ssh:
enabled: true
app-mcp:
namespace: openshift-cluster-observability-operator
labelSelector:
app.kubernetes.io/instance: monitoring
app.kubernetes.io/managed-by: observability-operator
devImage: quay.io/openshift-observability-ui/monitoring-plugin:devspace-5.0
patches:
- op: replace
path: spec.containers[0].imagePullPolicy
value: Always
sync:
- path: ./web/dist:/opt/app-root/web/dist
startContainer: true
command: ["make"]
args: ["start-devspace-mcp-backend"]
ssh:
enabled: true