mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
add registry cache capability to upgradecluster_test.go
Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
parent
a060805c0a
commit
4624d3922c
@ -19,8 +19,11 @@ var nodeOS = flag.String("nodeOS", "generic/ubuntu2004", "VM operating system")
|
|||||||
var serverCount = flag.Int("serverCount", 3, "number of server nodes")
|
var serverCount = flag.Int("serverCount", 3, "number of server nodes")
|
||||||
var agentCount = flag.Int("agentCount", 2, "number of agent nodes")
|
var agentCount = flag.Int("agentCount", 2, "number of agent nodes")
|
||||||
var hardened = flag.Bool("hardened", false, "true or false")
|
var hardened = flag.Bool("hardened", false, "true or false")
|
||||||
|
var ci = flag.Bool("ci", false, "running on CI")
|
||||||
|
|
||||||
// Environment Variables Info:
|
// Environment Variables Info:
|
||||||
|
// E2E_REGISTRY: true/false (default: false)
|
||||||
|
// Controls which K3s version is installed first, upgrade is always to latest commit
|
||||||
// E2E_RELEASE_VERSION=v1.23.3+k3s1
|
// E2E_RELEASE_VERSION=v1.23.3+k3s1
|
||||||
// OR
|
// OR
|
||||||
// E2E_RELEASE_CHANNEL=(commit|latest|stable), commit pulls latest commit from master
|
// E2E_RELEASE_CHANNEL=(commit|latest|stable), commit pulls latest commit from master
|
||||||
@ -379,7 +382,7 @@ var _ = AfterEach(func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
var _ = AfterSuite(func() {
|
var _ = AfterSuite(func() {
|
||||||
if failed {
|
if failed && !*ci {
|
||||||
fmt.Println("FAILED!")
|
fmt.Println("FAILED!")
|
||||||
} else {
|
} else {
|
||||||
Expect(e2e.DestroyCluster()).To(Succeed())
|
Expect(e2e.DestroyCluster()).To(Succeed())
|
||||||
|
@ -25,6 +25,7 @@ var local = flag.Bool("local", false, "deploy a locally built K3s binary")
|
|||||||
// Environment Variables Info:
|
// Environment Variables Info:
|
||||||
// E2E_EXTERNAL_DB: mysql, postgres, etcd (default: etcd)
|
// E2E_EXTERNAL_DB: mysql, postgres, etcd (default: etcd)
|
||||||
// E2E_RELEASE_VERSION=v1.23.1+k3s2 (default: latest commit from master)
|
// E2E_RELEASE_VERSION=v1.23.1+k3s2 (default: latest commit from master)
|
||||||
|
// E2E_REGISTRY: true/false (default: false)
|
||||||
|
|
||||||
func Test_E2EClusterValidation(t *testing.T) {
|
func Test_E2EClusterValidation(t *testing.T) {
|
||||||
RegisterFailHandler(Fail)
|
RegisterFailHandler(Fail)
|
||||||
|
Loading…
Reference in New Issue
Block a user