Skip to content

Commit 4cbed94

Browse files
committed
chore: deploy nginx in e2e workflow
1 parent 636fb88 commit 4cbed94

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/e2e.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ jobs:
7575
chmod +x ./kubectl
7676
sudo mv ./kubectl /usr/local/bin/kubectl
7777
78+
# Install vcluster
79+
curl -Lo vcluster https://github.com/loft-sh/vcluster/releases/download/v0.22.3/vcluster-linux-amd64
80+
chmod +x ./vcluster
81+
sudo mv ./vcluster /usr/local/bin/vcluster
82+
7883
# Install DevSpace
7984
curl -fsSL -o /tmp/devspace https://github.com/devspace-cloud/devspace/releases/latest/download/devspace-linux-amd64
8085
chmod +x /tmp/devspace
@@ -122,6 +127,13 @@ jobs:
122127
run: |
123128
kubectl wait --for=condition=ready vcluster -n vcluster-k3s vcluster-k3s --timeout=100s
124129
130+
- name: Connect to vcluster and install nginx
131+
run: |
132+
vcluster -n vcluster-k3s connect vcluster-k3s --background-proxy=true
133+
kubectl create namespace demo-nginx
134+
kubectl -n demo-nginx create deployment nginx-deployment --image=nginx
135+
kubectl -n demo-nginx rollout status deployment/nginx-deployment
136+
125137
- name: Create Vcluster Custom Resource K0S
126138
run: |
127139
export CLUSTER_NAME=vcluster-k0s
@@ -136,6 +148,13 @@ jobs:
136148
run: |
137149
kubectl wait --for=condition=ready vcluster -n vcluster-k0s vcluster-k0s --timeout=100s
138150
151+
- name: Connect to vcluster and install nginx
152+
run: |
153+
vcluster -n vcluster-k0s connect vcluster-k0s --background-proxy=true
154+
kubectl create namespace demo-nginx
155+
kubectl -n demo-nginx create deployment nginx-deployment --image=nginx
156+
kubectl -n demo-nginx rollout status deployment/nginx-deployment
157+
139158
- name: Create Vcluster Custom Resource K8S
140159
run: |
141160
export CLUSTER_NAME=vcluster-k8s
@@ -150,3 +169,9 @@ jobs:
150169
run: |
151170
kubectl wait --for=condition=ready vcluster -n vcluster-k8s vcluster-k8s --timeout=100s
152171
172+
- name: Connect to vcluster and install nginx
173+
run: |
174+
vcluster -n vcluster-k8s connect vcluster-k8s --background-proxy=true
175+
kubectl create namespace demo-nginx
176+
kubectl -n demo-nginx create deployment nginx-deployment --image=nginx
177+
kubectl -n demo-nginx rollout status deployment/nginx-deployment

0 commit comments

Comments
 (0)