Skip to content

Commit ad8a159

Browse files
Merge pull request #359 from furkatgofurov7/add-metadata
Add release-0.4 metadata
2 parents 07eef9b + ccc265e commit ad8a159

File tree

4 files changed

+68
-8
lines changed

4 files changed

+68
-8
lines changed

metadata.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ releaseSeries:
1414
contract: v1beta1
1515
- major: 0
1616
minor: 3
17+
contract: v1beta1
18+
- major: 0
19+
minor: 4
1720
contract: v1beta1

test/e2e/config/e2e_conf.yaml

Lines changed: 52 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
managementClusterName: caprke2-e2e
22

33
images:
4-
- name: ghcr.io/rancher-sandbox/cluster-api-provider-rke2-bootstrap:v0.2.7
4+
- name: ghcr.io/rancher-sandbox/cluster-api-provider-rke2-bootstrap:v0.4.0
55
loadBehavior: tryLoad
6-
- name: ghcr.io/rancher-sandbox/cluster-api-provider-rke2-controlplane:v0.2.7
6+
- name: ghcr.io/rancher-sandbox/cluster-api-provider-rke2-controlplane:v0.4.0
77
loadBehavior: tryLoad
88
- name: ghcr.io/rancher-sandbox/cluster-api-provider-rke2-bootstrap:dev
99
loadBehavior: mustLoad
@@ -64,7 +64,31 @@ providers:
6464
new: "imagePullPolicy: IfNotPresent"
6565
- old: "--leader-elect"
6666
new: "--leader-elect=false"
67-
- name: v0.3.99
67+
- name: "v0.3.0"
68+
value: "https://github.com/rancher-sandbox/cluster-api-provider-rke2/releases/download/v0.3.0/control-plane-components.yaml"
69+
type: "url"
70+
contract: v1beta1
71+
files:
72+
- sourcePath: "../../../metadata.yaml"
73+
targetName: "metadata.yaml"
74+
replacements:
75+
- old: "imagePullPolicy: Always"
76+
new: "imagePullPolicy: IfNotPresent"
77+
- old: "--leader-elect"
78+
new: "--leader-elect=false"
79+
- name: "v0.4.0"
80+
value: "https://github.com/rancher-sandbox/cluster-api-provider-rke2/releases/download/v0.4.0/control-plane-components.yaml"
81+
type: "url"
82+
contract: v1beta1
83+
files:
84+
- sourcePath: "../../../metadata.yaml"
85+
targetName: "metadata.yaml"
86+
replacements:
87+
- old: "imagePullPolicy: Always"
88+
new: "imagePullPolicy: IfNotPresent"
89+
- old: "--leader-elect"
90+
new: "--leader-elect=false"
91+
- name: v0.4.99
6892
value: "../../../controlplane/config/default"
6993
contract: v1beta1
7094
files:
@@ -90,7 +114,31 @@ providers:
90114
new: "imagePullPolicy: IfNotPresent"
91115
- old: "--leader-elect"
92116
new: "--leader-elect=false"
93-
- name: v0.3.99
117+
- name: "v0.3.0"
118+
value: "https://github.com/rancher-sandbox/cluster-api-provider-rke2/releases/download/v0.3.0/bootstrap-components.yaml"
119+
type: "url"
120+
contract: v1beta1
121+
files:
122+
- sourcePath: "../../../metadata.yaml"
123+
targetName: "metadata.yaml"
124+
replacements:
125+
- old: "imagePullPolicy: Always"
126+
new: "imagePullPolicy: IfNotPresent"
127+
- old: "--leader-elect"
128+
new: "--leader-elect=false"
129+
- name: "v0.4.0"
130+
value: "https://github.com/rancher-sandbox/cluster-api-provider-rke2/releases/download/v0.4.0/bootstrap-components.yaml"
131+
type: "url"
132+
contract: v1beta1
133+
files:
134+
- sourcePath: "../../../metadata.yaml"
135+
targetName: "metadata.yaml"
136+
replacements:
137+
- old: "imagePullPolicy: Always"
138+
new: "imagePullPolicy: IfNotPresent"
139+
- old: "--leader-elect"
140+
new: "--leader-elect=false"
141+
- name: v0.4.99
94142
value: ../../../bootstrap/config/default
95143
contract: v1beta1
96144
files:

test/e2e/e2e_suite_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ func initBootstrapCluster(bootstrapClusterProxy framework.ClusterProxy, config *
241241
InfrastructureProviders: config.InfrastructureProviders(),
242242
IPAMProviders: config.IPAMProviders(),
243243
RuntimeExtensionProviders: config.RuntimeExtensionProviders(),
244-
BootstrapProviders: []string{"rke2-bootstrap"},
245-
ControlPlaneProviders: []string{"rke2-control-plane"},
244+
BootstrapProviders: []string{"rke2-bootstrap:v0.4.0"},
245+
ControlPlaneProviders: []string{"rke2-control-plane:v0.4.0"},
246246
LogFolder: filepath.Join(artifactFolder, "clusters", bootstrapClusterProxy.GetName()),
247247
}, config.GetIntervals(bootstrapClusterProxy.GetName(), "wait-controllers")...)
248248
}

test/e2e/e2e_upgrade_test.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,21 @@ var _ = Describe("Workload cluster creation", func() {
115115
ControlPlane: client.ObjectKeyFromObject(result.LegacyControlPlane),
116116
}, e2eConfig.GetIntervals(specName, "wait-control-plane")...)
117117

118+
By("Upgrading to v0.3.0 boostrap/controlplane provider version")
119+
clusterctl.UpgradeManagementClusterAndWait(ctx, clusterctl.UpgradeManagementClusterAndWaitInput{
120+
ClusterProxy: bootstrapClusterProxy,
121+
ClusterctlConfigPath: clusterctlConfigPath,
122+
BootstrapProviders: []string{"rke2-bootstrap:v0.3.0"},
123+
ControlPlaneProviders: []string{"rke2-control-plane:v0.3.0"},
124+
LogFolder: clusterctlLogFolder,
125+
}, e2eConfig.GetIntervals(specName, "wait-controllers")...)
126+
118127
By("Upgrading to current boostrap/controlplane provider version")
119128
clusterctl.UpgradeManagementClusterAndWait(ctx, clusterctl.UpgradeManagementClusterAndWaitInput{
120129
ClusterProxy: bootstrapClusterProxy,
121130
ClusterctlConfigPath: clusterctlConfigPath,
122-
BootstrapProviders: []string{"rke2-bootstrap:v0.3.99"},
123-
ControlPlaneProviders: []string{"rke2-control-plane:v0.3.99"},
131+
BootstrapProviders: []string{"rke2-bootstrap:v0.4.99"},
132+
ControlPlaneProviders: []string{"rke2-control-plane:v0.4.99"},
124133
LogFolder: clusterctlLogFolder,
125134
}, e2eConfig.GetIntervals(specName, "wait-controllers")...)
126135

0 commit comments

Comments
 (0)