Skip to content

Commit 03bc0dd

Browse files
authored
ci: use Rancher v2.13 for e2e (#1843)
Signed-off-by: Andrea Mazzotti <[email protected]>
1 parent cebf342 commit 03bc0dd

File tree

16 files changed

+30
-67
lines changed

16 files changed

+30
-67
lines changed

.github/workflows/test_chart.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
CONTROLLER_IMG: controller
1717
PULL_POLICY: Never
1818
CERT_MANAGER_VERSION: v1.16.3
19-
RANCHER_VERSION: v2.12.1
19+
RANCHER_VERSION: v2.13.0-alpha3
2020

2121
jobs:
2222
prime-test:
@@ -80,16 +80,16 @@ jobs:
8080
run: helm repo add jetstack https://charts.jetstack.io
8181

8282
- name: Add rancher chart repo
83-
run: helm repo add rancher-latest https://releases.rancher.com/server-charts/latest
83+
run: helm repo add rancher-alpha https://releases.rancher.com/server-charts/alpha
8484

8585
- name: Install cert-manager
8686
run: helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --version ${{ env.CERT_MANAGER_VERSION }} --set crds.enabled=true --set crds.keep=true --wait
8787

8888
- name: Install Rancher
89-
run: helm install rancher rancher-latest/rancher --namespace cattle-system --create-namespace --set bootstrapPassword=rancheradmin --set replicas=1 --set hostname="e2e.dev.rancher" --set 'extraEnv[0].name=CATTLE_FEATURES' --version ${{ env.RANCHER_VERSION }} --wait
89+
run: helm install rancher rancher-alpha/rancher --namespace cattle-system --create-namespace --set bootstrapPassword=rancheradmin --set replicas=1 --set hostname="e2e.dev.rancher" --set 'extraEnv[0].name=CATTLE_FEATURES' --set 'extraEnv[0].value=turtles=false' --version ${{ env.RANCHER_VERSION }} --wait
9090

9191
- name: Run chart-testing (install)
92-
run: helm install rancher-turtles out/charts/rancher-turtles/ -n cattle-turtles-system --create-namespace --wait --debug
92+
run: helm install rancher-turtles out/charts/rancher-turtles/ -n rancher-turtles-system --set namespace=rancher-turtles-system --create-namespace --wait --debug
9393

9494
- name: Wait for core provider rollout
9595
run: sleep 30 && kubectl rollout status deployment capi-controller-manager -n cattle-capi-system --timeout=10m
@@ -102,10 +102,10 @@ jobs:
102102
fi
103103
104104
- name: Run chart-testing (un-install)
105-
run: helm uninstall rancher-turtles -n cattle-turtles-system --cascade foreground --wait --debug --timeout=10m
105+
run: helm uninstall rancher-turtles -n rancher-turtles-system --cascade foreground --wait --debug --timeout=10m
106106

107107
- name: Run chart re-install
108-
run: helm install rancher-turtles out/charts/rancher-turtles/ -n cattle-turtles-system --create-namespace --wait --debug
108+
run: helm install rancher-turtles out/charts/rancher-turtles/ -n rancher-turtles-system --set namespace=rancher-turtles-system --create-namespace --wait --debug
109109

110110
community-test:
111111
runs-on: ubuntu-latest
@@ -155,10 +155,10 @@ jobs:
155155
run: helm repo add jetstack https://charts.jetstack.io && helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --version ${{ env.CERT_MANAGER_VERSION }} --set crds.enabled=true --set crds.keep=true --wait
156156

157157
- name: Install Rancher
158-
run: helm repo add rancher-latest https://releases.rancher.com/server-charts/latest && helm install rancher rancher-latest/rancher --namespace cattle-system --create-namespace --set bootstrapPassword=rancheradmin --set replicas=1 --set hostname="e2e.dev.rancher" --version ${{ env.RANCHER_VERSION }} --wait
158+
run: helm repo add rancher-alpha https://releases.rancher.com/server-charts/alpha && helm install rancher rancher-alpha/rancher --namespace cattle-system --create-namespace --set bootstrapPassword=rancheradmin --set replicas=1 --set hostname="e2e.dev.rancher" --set 'extraEnv[0].name=CATTLE_FEATURES' --set 'extraEnv[0].value=turtles=false' --version ${{ env.RANCHER_VERSION }} --wait
159159

160160
- name: Install rancher-turtles chart
161-
run: helm install rancher-turtles out/charts/rancher-turtles/ -n cattle-turtles-system --create-namespace --wait --debug
161+
run: helm install rancher-turtles out/charts/rancher-turtles/ -n rancher-turtles-system --set namespace=rancher-turtles-system --create-namespace --wait --debug
162162

163163
- name: Wait for core provider rollout
164164
run: sleep 30 && kubectl rollout status deployment capi-controller-manager -n cattle-capi-system --timeout=10m

internal/controllers/testdata/import_sample.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ spec:
192192
value: 726f86e0-b3bc-41f1-9757-8a0ee24560f4
193193
- name: CATTLE_INGRESS_IP_DOMAIN
194194
value: sslip.io
195-
image: rancher/rancher-agent:v2.12.1
195+
image: rancher/rancher-agent:v2.13.0-alpha3
196196
volumeMounts:
197197
- name: cattle-credentials
198198
mountPath: /cattle-credentials

scripts/turtles-quickstart.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
set -e
1919

2020
RANCHER_CHANNEL=${RANCHER_CHANNEL:-latest}
21-
RANCHER_VERSION=${RANCHER_VERSION:-v2.12.1}
21+
RANCHER_VERSION=${RANCHER_VERSION:-v2.13.0-alpha3}
2222
RANCHER_IMAGE=${RANCHER_IMAGE:-rancher/rancher:$RANCHER_VERSION}
2323
RANCHER_CLUSTER_NAME=${RANCHER_CLUSTER_NAME:-rancher-cluster}
2424
RANCHER_TURTLES_VERSION=${RANCHER_TURTLES_VERSION:-v0.24.1}

test/e2e/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Most notable ones:
162162

163163
```yaml
164164
variables:
165-
RANCHER_VERSION: "v2.12.1" # Default rancher version to install
165+
RANCHER_VERSION: "v2.13.0-alpha3" # Default rancher version to install
166166
RANCHER_HOSTNAME: "localhost" # Your ngrok domain
167167
NGROK_API_KEY: "" # Key and token values for establishing ingress
168168
NGROK_AUTHTOKEN: ""

test/e2e/config/operator.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ variables:
7373
HELM_EXTRA_VALUES_FOLDER: "/tmp"
7474

7575
# Rancher Configuration
76-
RANCHER_VERSION: "v2.12.1"
77-
RANCHER_REPO_NAME: "rancher-latest"
78-
RANCHER_PATH: "rancher-latest/rancher"
79-
RANCHER_URL: "https://releases.rancher.com/server-charts/latest"
76+
RANCHER_VERSION: "v2.13.0-alpha3"
77+
RANCHER_REPO_NAME: "rancher-alpha"
78+
RANCHER_PATH: "rancher-alpha/rancher"
79+
RANCHER_URL: "https://releases.rancher.com/server-charts/alpha"
8080
RANCHER_HOSTNAME: "localhost"
8181
RANCHER_PASSWORD: "rancheradmin"
8282

test/e2e/const.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,10 @@ var (
136136

137137
//go:embed data/test-providers/clusterctlconfig-updated.yaml
138138
ClusterctlConfigUpdated []byte
139-
140-
//go:embed data/rancher/pre-turtles-install.yaml
141-
RancherTurtlesPreInstall []byte
142139
)
143140

144141
const (
145-
RancherTurtlesNamespace = "cattle-turtles-system"
142+
RancherTurtlesNamespace = "rancher-turtles-system"
146143
RancherNamespace = "cattle-system"
147144
NginxIngressNamespace = "ingress-nginx"
148145
NginxIngressDeployment = "ingress-nginx-controller"

test/e2e/data/capi-operator/clusterctlconfig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: turtles-capi.cattle.io/v1alpha1
22
kind: ClusterctlConfig
33
metadata:
44
name: clusterctl-config
5-
namespace: cattle-turtles-system
5+
namespace: rancher-turtles-system
66
spec:
77
images:
88
- name: infrastructure-docker

test/e2e/data/rancher/pre-turtles-install.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

test/e2e/data/test-providers/clusterctlconfig-updated.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: turtles-capi.cattle.io/v1alpha1
22
kind: ClusterctlConfig
33
metadata:
44
name: clusterctl-config
5-
namespace: cattle-turtles-system
5+
namespace: rancher-turtles-system
66
spec:
77
providers:
88
- name: vsphere

test/e2e/data/test-providers/clusterctlconfig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: turtles-capi.cattle.io/v1alpha1
22
kind: ClusterctlConfig
33
metadata:
44
name: clusterctl-config
5-
namespace: cattle-turtles-system
5+
namespace: rancher-turtles-system
66
spec:
77
providers:
88
- name: vsphere

0 commit comments

Comments
 (0)