Skip to content

Commit

Permalink
Add e2e test about mixedos+flannel
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Buil <[email protected]>
  • Loading branch information
manuelbuil committed Jul 10, 2024
1 parent 43760e9 commit 311b3a5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 9 additions & 0 deletions tests/e2e/mixedos/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# How to switch CNI

Calico is the default CNI plugin for this E2E test. If you want to use Flannel instead, add "flannel" as the value for `E2E_CNI`

Example:

```
E2E_CNI=flannel go test -v -timeout=30m tests/e2e/mixedos/mixedos_test.go
```
5 changes: 3 additions & 2 deletions tests/e2e/mixedos/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ GITHUB_BRANCH = (ENV['E2E_GITHUB_BRANCH'] || "master")
RELEASE_VERSION = (ENV['E2E_RELEASE_VERSION'] || "")
NODE_CPUS = (ENV['E2E_NODE_CPUS'] || 2).to_i
NODE_MEMORY = (ENV['E2E_NODE_MEMORY'] || 3072).to_i
CNI = (ENV['E2E_CNI'] || "calico")
# Virtualbox >= 6.1.28 require `/etc/vbox/network.conf` for expanded private networks
NETWORK_PREFIX = "10.10.10"
install_type = ""
Expand Down Expand Up @@ -47,7 +48,7 @@ def provision(vm, role, role_num, node_num)
node-external-ip: #{NETWORK_PREFIX}.100
node-ip: #{NETWORK_PREFIX}.100
token: vagrant-rke2
cni: calico
cni: #{CNI}
YAML
end
vm.provision "Install sonobuoy", type: "shell", path: "../scripts/install_sonobuoy.sh"
Expand All @@ -61,7 +62,7 @@ def provision(vm, role, role_num, node_num)
node-ip: #{node_ip}
server: https://#{NETWORK_PREFIX}.100:9345
token: vagrant-rke2
cni: calico
cni: #{CNI}
YAML
end
end
Expand Down

0 comments on commit 311b3a5

Please sign in to comment.