Add vCluster CLI to the test image 67/15267/11
authormesaj <juanmanuel.mesamendez.ext@telefonica.com>
Mon, 30 Jun 2025 17:08:29 +0000 (19:08 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 15 Jul 2025 08:02:38 +0000 (10:02 +0200)
Change-Id: Icf6f3d438d00dab50d757a73f9c98e3586c593ca
Signed-off-by: mesaj <juanmanuel.mesamendez.ext@telefonica.com>
docker/tests/Dockerfile
docker/tests/configs/vcluster.yaml [new file with mode: 0644]

index 95248f1..cceaea9 100644 (file)
@@ -80,6 +80,14 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \
 # Azure CLI
 RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
 
+# Add vCluster CLI
+ENV VCLUSTER_VERSION "v0.26.0"
+RUN curl -L -o /tmp/vcluster "https://github.com/loft-sh/vcluster/releases/download/${VCLUSTER_VERSION}/vcluster-linux-amd64" \
+    && install -c -m 0755 /tmp/vcluster /usr/local/bin \
+    && rm -f /tmp/vcluster
+# Copy vCluster configuration
+COPY configs/vcluster.yaml /etc/vcluster.yaml
+
 RUN mv /usr/share/osm-tests/robot-systest /robot-systest
 RUN mv /usr/share/osm-tests/cloud-scripts /robot-systest/
 RUN mv /usr/share/osm-tests/conformance-tests/ /robot-systest/
diff --git a/docker/tests/configs/vcluster.yaml b/docker/tests/configs/vcluster.yaml
new file mode 100644 (file)
index 0000000..52a0fa8
--- /dev/null
@@ -0,0 +1,32 @@
+#######################################################################################
+# Copyright ETSI Contributors and Others.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#######################################################################################
+controlPlane:
+  proxy:
+    extraSANs:
+      - "e2e.vcluster.svc.cluster.local"
+  distro:
+    k8s:
+      image:
+        tag: v1.29.3
+exportKubeConfig:
+  server: https://e2e.vcluster.svc.cluster.local:443
+  secret:
+    name: vcluster-flux-kubeconfig
+sync:
+  fromHost:
+    storageClasses:
+      enabled: true