From 62b648437a54a9483d7c2a83b3fef826298f3c44 Mon Sep 17 00:00:00 2001 From: Anatolii Bazko Date: Mon, 27 May 2024 11:12:17 +0200 Subject: [PATCH] fixup Signed-off-by: Anatolii Bazko --- build/scripts/minikube-tests/common.sh | 101 +++++++++++++++++++++++++ 1 file changed, 101 insertions(+) diff --git a/build/scripts/minikube-tests/common.sh b/build/scripts/minikube-tests/common.sh index ccfa51445..5bf34a865 100755 --- a/build/scripts/minikube-tests/common.sh +++ b/build/scripts/minikube-tests/common.sh @@ -202,6 +202,102 @@ metadata: kubernetes.io/metadata.name: ${USER_NAMESPACE} EOF +kubectl apply -f - < /checode/entrypoint-logs.txt + 2>&1 & + component: che-code-runtime-description + id: init-che-code-command + components: + - container: + command: + - /entrypoint-init-container.sh + cpuLimit: 500m + cpuRequest: 30m + env: + - name: CHE_DASHBOARD_URL + value: https://$(minikube ip).nip.io + - name: OPENVSX_REGISTRY_URL + value: https://open-vsx.org + image: quay.io/che-incubator/che-code:latest + memoryLimit: 256Mi + memoryRequest: 32Mi + sourceMapping: /projects + volumeMounts: + - name: checode + path: /checode + name: che-code-injector + - attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + container: + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - attributes: + cookiesAuthEnabled: true + discoverable: false + type: main + urlRewriteSupported: true + exposure: public + name: che-code + protocol: https + secure: true + targetPort: 3100 + - attributes: + discoverable: false + urlRewriteSupported: false + exposure: public + name: code-redirect-1 + protocol: https + targetPort: 13131 + - attributes: + discoverable: false + urlRewriteSupported: false + exposure: public + name: code-redirect-2 + protocol: https + targetPort: 13132 + - attributes: + discoverable: false + urlRewriteSupported: false + exposure: public + name: code-redirect-3 + protocol: https + targetPort: 13133 + env: + - name: CHE_DASHBOARD_URL + value: https://$(minikube ip).nip.io + - name: OPENVSX_REGISTRY_URL + value: https://open-vsx.org + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 1024Mi + memoryRequest: 256Mi + sourceMapping: /projects + volumeMounts: + - name: checode + path: /checode + name: che-code-runtime-description + - name: checode + volume: {} + events: + postStart: + - init-che-code-command + preStart: + - init-container-command +EOF + kubectl apply -f - <