From: mesaj Date: Mon, 30 Jun 2025 17:08:29 +0000 (+0200) Subject: Add vCluster CLI to the test image X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=1171fd4f010830af0835530c6c034d5f19dc9cf1;p=osm%2Fdevops.git Add vCluster CLI to the test image Change-Id: Icf6f3d438d00dab50d757a73f9c98e3586c593ca Signed-off-by: mesaj Signed-off-by: garciadeblas --- diff --git a/docker/tests/Dockerfile b/docker/tests/Dockerfile index 95248f1c..cceaea9f 100644 --- a/docker/tests/Dockerfile +++ b/docker/tests/Dockerfile @@ -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 index 00000000..52a0fa8c --- /dev/null +++ b/docker/tests/configs/vcluster.yaml @@ -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