Skip to content

Commit

Permalink
Adress Review Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jfaltermeier committed Jan 24, 2025
1 parent 2e9f09b commit d1c8c2f
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 14 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
path: "./theia-cloud-helm"

- name: Setup Minikube
uses: manusa/actions-setup-minikube@92af4db914ab207f837251cd53eb7060e6477614
uses: manusa/actions-setup-minikube@92af4db914ab207f837251cd53eb7060e6477614 # v2.11.0
with:
minikube version: v1.33.1
kubernetes version: ${{ matrix.kubernetes }}
Expand All @@ -62,7 +62,6 @@ jobs:

- name: Enable Minikube Addons
run: |
minikube addons enable dashboard
minikube addons enable default-storageclass
minikube addons enable ingress
minikube addons enable metrics-server
Expand Down Expand Up @@ -118,10 +117,10 @@ jobs:
- name: Wait for Deployments to be Ready
run: |
kubectl wait --namespace ingress-nginx --for=condition=available deployment/ingress-nginx-controller --timeout=300s
kubectl wait --namespace theiacloud --for=condition=available deployment/conversion-webhook --timeout=300s
kubectl wait --namespace theiacloud --for=condition=available deployment/landing-page-deployment --timeout=300s
kubectl wait --namespace theiacloud --for=condition=available deployment/operator-deployment --timeout=300s
kubectl wait --namespace theiacloud --for=condition=available deployment/service-deployment --timeout=300s
kubectl wait --namespace theia-cloud --for=condition=available deployment/conversion-webhook --timeout=300s
kubectl wait --namespace theia-cloud --for=condition=available deployment/landing-page-deployment --timeout=300s
kubectl wait --namespace theia-cloud --for=condition=available deployment/operator-deployment --timeout=300s
kubectl wait --namespace theia-cloud --for=condition=available deployment/service-deployment --timeout=300s
# URLs
# service: servicex
Expand Down
File renamed without changes.
9 changes: 8 additions & 1 deletion node/e2e-tests/src/k8s.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { CustomObjectsApi, KubeConfig } from '@kubernetes/client-node';

import { namespace, resourceGroup, sessionPlural, sessionVersion, workspacePlural, workspaceVersion } from './constats';
import {
namespace,
resourceGroup,
sessionPlural,
sessionVersion,
workspacePlural,
workspaceVersion
} from './constants';

const kc = new KubeConfig();
kc.loadFromDefault();
Expand Down
2 changes: 1 addition & 1 deletion node/e2e-tests/src/tests/start.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from '@playwright/test';

import { namespace, resourceGroup, sessionPlural, sessionVersion } from '../constats';
import { namespace, resourceGroup, sessionPlural, sessionVersion } from '../constants';
import { deleteAllSessions, deleteAllWorkspaces, k8sApi } from '../k8s';

test.describe('Start Session', () => {
Expand Down
10 changes: 5 additions & 5 deletions terraform/ci-configurations/e2e_tests.tf
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ resource "helm_release" "theia-cloud-crds" {

name = "theia-cloud-crds"
chart = "../../../theia-cloud-helm/charts/theia-cloud-crds"
namespace = "theiacloud"
namespace = "theia-cloud"
create_namespace = true

set {
Expand All @@ -111,7 +111,7 @@ resource "helm_release" "theia-cloud-base" {

name = "theia-cloud-base"
chart = "../../../theia-cloud-helm/charts/theia-cloud-base"
namespace = "theiacloud"
namespace = "theia-cloud"
create_namespace = true

set {
Expand All @@ -125,7 +125,7 @@ resource "helm_release" "theia-cloud" {

name = "theia-cloud"
chart = "../../../theia-cloud-helm/charts/theia-cloud"
namespace = "theiacloud"
namespace = "theia-cloud"
create_namespace = true

values = [
Expand Down Expand Up @@ -165,7 +165,7 @@ resource "kubectl_manifest" "theia-cloud-monitor-theia" {
kind: AppDefinition
metadata:
name: theia-cloud-monitor-theia
namespace: theiacloud
namespace: theia-cloud
spec:
name: theia-cloud-monitor-theia
image: theiacloud/theia-cloud-activity-demo-theia:minikube-ci-e2e
Expand Down Expand Up @@ -199,7 +199,7 @@ resource "kubectl_manifest" "theia-cloud-monitor-vscode" {
kind: AppDefinition
metadata:
name: theia-cloud-monitor-vscode
namespace: theiacloud
namespace: theia-cloud
spec:
name: theia-cloud-monitor-vscode
image: theiacloud/theia-cloud-activity-demo:minikube-ci-e2e
Expand Down
4 changes: 3 additions & 1 deletion terraform/ci-configurations/run-locally.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ kubectl -n ingress-nginx patch cm ingress-nginx-controller --patch '{"data":{"al
kubectl -n ingress-nginx delete pod -l app.kubernetes.io/name=ingress-nginx
```

Adapt your environment so that all docker images are built in minikube. Build all Theia Cloud docker images + Demos with tag `minikube-ci-e2e`, e.g. `theiacloud/theia-cloud-service:minikube-ci-e2e`.
Adapt your environment so that all docker images are built in minikube.
Build all Theia Cloud docker images + Demos with tag `minikube-ci-e2e`, e.g. `theiacloud/theia-cloud-service:minikube-ci-e2e`.
The build commands need to be executed from the root of the repository.

```sh
eval $(minikube docker-env)
Expand Down

0 comments on commit d1c8c2f

Please sign in to comment.