From 7cbc12f11225a29d473ae5878a807b684583c37d Mon Sep 17 00:00:00 2001 From: Karel Suta Date: Mon, 20 May 2024 22:02:48 +0200 Subject: [PATCH] Enable mTLS for e2e tests and HTTPS for KinD cluster --- config/e2e/config.yaml | 2 +- test/e2e/kind.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/e2e/config.yaml b/config/e2e/config.yaml index e216371fe..538b7ad5d 100644 --- a/config/e2e/config.yaml +++ b/config/e2e/config.yaml @@ -7,6 +7,6 @@ data: kuberay: rayDashboardOAuthEnabled: false ingressDomain: "kind" - mTLSEnabled: false + certGeneratorImage: quay.io/project-codeflare/ray:latest-py39-cu118 appwrapper: enabled: true diff --git a/test/e2e/kind.sh b/test/e2e/kind.sh index 7b7e9053e..29b19c347 100755 --- a/test/e2e/kind.sh +++ b/test/e2e/kind.sh @@ -28,6 +28,9 @@ nodes: - containerPort: 80 hostPort: 80 protocol: TCP + - containerPort: 443 + hostPort: 443 + protocol: TCP kubeadmConfigPatches: - | kind: InitConfiguration @@ -39,4 +42,5 @@ EOF echo "Deploying Ingress controller into KinD cluster" curl https://raw.githubusercontent.com/kubernetes/ingress-nginx/"${INGRESS_NGINX_VERSION}"/deploy/static/provider/kind/deploy.yaml | sed "s/--publish-status-address=localhost/--report-node-internal-ip-address\\n - --status-update-interval=10/g" | kubectl apply -f - kubectl annotate ingressclass nginx "ingressclass.kubernetes.io/is-default-class=true" +kubectl patch deploy --type json --patch '[{"op":"add","path": "/spec/template/spec/containers/0/args/-","value":"--enable-ssl-passthrough"}]' ingress-nginx-controller -n ingress-nginx kubectl -n ingress-nginx wait --timeout=300s --for=condition=Available deployments --all