Skip to content

Commit 37b4876

Browse files
authored
Update test-operator.sh
1 parent 015fab5 commit 37b4876

1 file changed

Lines changed: 70 additions & 1 deletion

File tree

build/scripts/minikube-tests/test-operator.sh

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,75 @@ runTest() {
2929
buildAndCopyCheOperatorImageToMinikube
3030
yq -riSY '.spec.template.spec.containers[0].image = "'${OPERATOR_IMAGE}'"' "${CURRENT_OPERATOR_VERSION_TEMPLATE_PATH}/che-operator/kubernetes/operator.yaml"
3131
yq -riSY '.spec.template.spec.containers[0].imagePullPolicy = "IfNotPresent"' "${CURRENT_OPERATOR_VERSION_TEMPLATE_PATH}/che-operator/kubernetes/operator.yaml"
32+
33+
cat > /tmp/patch.yaml <<EOF
34+
apiVersion: org.eclipse.che/v2
35+
spec:
36+
components:
37+
pluginRegistry:
38+
openVSXURL: https://open-vsx.org
39+
deployment:
40+
containers:
41+
- resources:
42+
request:
43+
cpu: '20m'
44+
limits:
45+
cpu: '20m'
46+
devfileRegistry:
47+
deployment:
48+
containers:
49+
- resources:
50+
request:
51+
cpu: '20m'
52+
limits:
53+
cpu: '20m'
54+
cheServer:
55+
deployment:
56+
containers:
57+
- resources:
58+
limits:
59+
cpu: '400m'
60+
request:
61+
cpu: '400m'
62+
image: 'quay.io/dkwon17/che-server:user-profile-che-operator'
63+
dashboard:
64+
deployment:
65+
containers:
66+
- resources:
67+
request:
68+
cpu: '40m'
69+
limits:
70+
cpu: '40m'
71+
networking:
72+
auth:
73+
gateway:
74+
deployment:
75+
containers:
76+
- name: gateway
77+
resources:
78+
request:
79+
cpu: '20m'
80+
limits:
81+
cpu: '20m'
82+
- name: configbump
83+
resources:
84+
request:
85+
cpu: '20m'
86+
limits:
87+
cpu: '20m'
88+
- name: oauth-proxy
89+
resources:
90+
request:
91+
cpu: '20m'
92+
limits:
93+
cpu: '20m'
94+
- name: kube-rbac-proxy
95+
resources:
96+
request:
97+
cpu: '20m'
98+
limits:
99+
cpu: '20m'
100+
EOF
32101

33102
chectl server:deploy \
34103
--batch \
@@ -38,7 +107,7 @@ runTest() {
38107
--templates "${CURRENT_OPERATOR_VERSION_TEMPLATE_PATH}" \
39108
--k8spodwaittimeout=120000 \
40109
--k8spodreadytimeout=120000 \
41-
--che-operator-cr-patch-yaml "${OPERATOR_REPO}/build/scripts/minikube-tests/minikube-checluster-patch.yaml"
110+
--che-operator-cr-patch-yaml /tmp/patch.yaml
42111

43112
make wait-devworkspace-running NAMESPACE="devworkspace-controller" VERBOSE=1
44113

0 commit comments

Comments
 (0)