Skip to content

Commit

Permalink
Add v1alpha6 clusterctl upgrade test
Browse files Browse the repository at this point in the history
  • Loading branch information
mdbooth committed Mar 3, 2023
1 parent 67428d5 commit 1477915
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/e2e/data/e2e_conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,20 @@ providers:
new: "--v=4"
- old: "--leader-elect"
new: "--leader-elect=false\n - --sync-period=1m"
- name: v0.7.1
value: "https://github.com/kubernetes-sigs/cluster-api-provider-openstack/releases/download/v0.7.1/infrastructure-components.yaml"
type: url
contract: v1beta1
files:
- sourcePath: "../data/shared/v1beta1_provider/metadata.yaml"
- sourcePath: "./infrastructure-openstack/cluster-template.yaml"
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- old: "--v=2"
new: "--v=4"
- old: "--leader-elect"
new: "--leader-elect=false\n - --sync-period=1m"
- name: v0.7.99
value: ../../../config/default
# This is the upcoming version.
Expand Down
1 change: 1 addition & 0 deletions test/e2e/shared/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const (
FlavorMultiNetwork = "multi-network-ci-artifacts"
FlavorMultiAZ = "multi-az-ci-artifacts"
FlavorV1alpha5 = "v1alpha5-ci-artifacts"
FlavorV1alpha6 = "v1alpha6-ci-artifacts"
FlavorMDRemediation = "md-remediation-ci-artifacts"
FlavorKCPRemediation = "kcp-remediation-ci-artifacts"
)
Expand Down
21 changes: 21 additions & 0 deletions test/e2e/suites/e2e/clusterctl_upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,24 @@ var _ = Describe("When testing clusterctl upgrades (v0.6=>current) [clusterctl-u
}
})
})

var _ = Describe("When testing clusterctl upgrades (v0.7=>current) [clusterctl-upgrade]", func() {
ctx := context.TODO()
shared.SetEnvVar("USE_CI_ARTIFACTS", "true", false)
shared.SetEnvVar("DOWNLOAD_E2E_IMAGE", "true", false)

capi_e2e.ClusterctlUpgradeSpec(ctx, func() capi_e2e.ClusterctlUpgradeSpecInput {
return capi_e2e.ClusterctlUpgradeSpecInput{
E2EConfig: e2eCtx.E2EConfig,
ClusterctlConfigPath: e2eCtx.Environment.ClusterctlConfigPath,
BootstrapClusterProxy: e2eCtx.Environment.BootstrapClusterProxy,
ArtifactFolder: e2eCtx.Settings.ArtifactFolder,
SkipCleanup: false,
InitWithBinary: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.3.1/clusterctl-{OS}-{ARCH}",
InitWithProvidersContract: "v1beta1",
InitWithInfrastructureProviders: []string{"openstack:v0.7.1"},
MgmtFlavor: shared.FlavorDefault,
WorkloadFlavor: shared.FlavorV1alpha6,
}
})
})

0 comments on commit 1477915

Please sign in to comment.