Skip to content

Commit

Permalink
Merge pull request #372 from salasberryfin/release-v0-5-0
Browse files Browse the repository at this point in the history
🌱 chore: update metadata.yaml and E2E after release v0.5.0
  • Loading branch information
Danil-Grigorev authored Jul 30, 2024
2 parents 6e6a86e + 7165cfc commit 57a15fb
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 14 deletions.
5 changes: 4 additions & 1 deletion metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ releaseSeries:
contract: v1beta1
- major: 0
minor: 4
contract: v1beta1
contract: v1beta1
- major: 0
minor: 5
contract: v1beta1
32 changes: 28 additions & 4 deletions test/e2e/config/e2e_conf.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
managementClusterName: caprke2-e2e

images:
- name: ghcr.io/rancher/cluster-api-provider-rke2-bootstrap:v0.4.0
- name: ghcr.io/rancher/cluster-api-provider-rke2-bootstrap:v0.5.0
loadBehavior: tryLoad
- name: ghcr.io/rancher/cluster-api-provider-rke2-controlplane:v0.4.0
- name: ghcr.io/rancher/cluster-api-provider-rke2-controlplane:v0.5.0
loadBehavior: tryLoad
- name: ghcr.io/rancher/cluster-api-provider-rke2-bootstrap:dev
loadBehavior: mustLoad
Expand Down Expand Up @@ -88,7 +88,19 @@ providers:
new: "imagePullPolicy: IfNotPresent"
- old: "--leader-elect"
new: "--leader-elect=false"
- name: v0.4.99
- name: "v0.5.0"
value: "https://github.com/rancher/cluster-api-provider-rke2/releases/download/v0.5.0/control-plane-components.yaml"
type: "url"
contract: v1beta1
files:
- sourcePath: "../../../metadata.yaml"
targetName: "metadata.yaml"
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- old: "--leader-elect"
new: "--leader-elect=false"
- name: v0.5.99
value: "../../../controlplane/config/default"
contract: v1beta1
files:
Expand Down Expand Up @@ -138,7 +150,19 @@ providers:
new: "imagePullPolicy: IfNotPresent"
- old: "--leader-elect"
new: "--leader-elect=false"
- name: v0.4.99
- name: "v0.5.0"
value: "https://github.com/rancher/cluster-api-provider-rke2/releases/download/v0.5.0/bootstrap-components.yaml"
type: "url"
contract: v1beta1
files:
- sourcePath: "../../../metadata.yaml"
targetName: "metadata.yaml"
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- old: "--leader-elect"
new: "--leader-elect=false"
- name: v0.5.99
value: ../../../bootstrap/config/default
contract: v1beta1
files:
Expand Down
8 changes: 4 additions & 4 deletions test/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ func initBootstrapCluster(bootstrapClusterProxy framework.ClusterProxy, config *
InfrastructureProviders: config.InfrastructureProviders(),
IPAMProviders: config.IPAMProviders(),
RuntimeExtensionProviders: config.RuntimeExtensionProviders(),
BootstrapProviders: []string{"rke2-bootstrap:v0.4.0"},
ControlPlaneProviders: []string{"rke2-control-plane:v0.4.0"},
BootstrapProviders: []string{"rke2-bootstrap:v0.5.0"},
ControlPlaneProviders: []string{"rke2-control-plane:v0.5.0"},
LogFolder: filepath.Join(artifactFolder, "clusters", bootstrapClusterProxy.GetName()),
}, config.GetIntervals(bootstrapClusterProxy.GetName(), "wait-controllers")...)
}
Expand All @@ -254,8 +254,8 @@ func initLegacyBootstrapCluster(bootstrapClusterProxy framework.ClusterProxy, co
InfrastructureProviders: config.InfrastructureProviders(),
IPAMProviders: config.IPAMProviders(),
RuntimeExtensionProviders: config.RuntimeExtensionProviders(),
BootstrapProviders: []string{"rke2-bootstrap:v0.2.7"},
ControlPlaneProviders: []string{"rke2-control-plane:v0.2.7"},
BootstrapProviders: []string{"rke2-bootstrap:v0.3.0"},
ControlPlaneProviders: []string{"rke2-control-plane:v0.3.0"},
LogFolder: filepath.Join(artifactFolder, "clusters", bootstrapClusterProxy.GetName()),
}, config.GetIntervals(bootstrapClusterProxy.GetName(), "wait-controllers")...)
}
Expand Down
10 changes: 5 additions & 5 deletions test/e2e/e2e_upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,21 +115,21 @@ var _ = Describe("Workload cluster creation", func() {
ControlPlane: client.ObjectKeyFromObject(result.LegacyControlPlane),
}, e2eConfig.GetIntervals(specName, "wait-control-plane")...)

By("Upgrading to v0.3.0 boostrap/controlplane provider version")
By("Upgrading to v0.4.0 boostrap/controlplane provider version")
clusterctl.UpgradeManagementClusterAndWait(ctx, clusterctl.UpgradeManagementClusterAndWaitInput{
ClusterProxy: bootstrapClusterProxy,
ClusterctlConfigPath: clusterctlConfigPath,
BootstrapProviders: []string{"rke2-bootstrap:v0.3.0"},
ControlPlaneProviders: []string{"rke2-control-plane:v0.3.0"},
BootstrapProviders: []string{"rke2-bootstrap:v0.4.0"},
ControlPlaneProviders: []string{"rke2-control-plane:v0.4.0"},
LogFolder: clusterctlLogFolder,
}, e2eConfig.GetIntervals(specName, "wait-controllers")...)

By("Upgrading to current boostrap/controlplane provider version")
clusterctl.UpgradeManagementClusterAndWait(ctx, clusterctl.UpgradeManagementClusterAndWaitInput{
ClusterProxy: bootstrapClusterProxy,
ClusterctlConfigPath: clusterctlConfigPath,
BootstrapProviders: []string{"rke2-bootstrap:v0.4.99"},
ControlPlaneProviders: []string{"rke2-control-plane:v0.4.99"},
BootstrapProviders: []string{"rke2-bootstrap:v0.5.99"},
ControlPlaneProviders: []string{"rke2-control-plane:v0.5.99"},
LogFolder: clusterctlLogFolder,
}, e2eConfig.GetIntervals(specName, "wait-controllers")...)

Expand Down

0 comments on commit 57a15fb

Please sign in to comment.