Skip to content

Commit d8788d2

Browse files
authored
Merge pull request #5103 from willie-yao/test-aks-upgrade-1
Add MachinePools to CAPI apiversion upgrade test
2 parents 80fca66 + ba7a67d commit d8788d2

File tree

7 files changed

+2225
-0
lines changed

7 files changed

+2225
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,7 @@ generate-e2e-templates: $(KUSTOMIZE) ## Generate Azure infrastructure templates
496496
$(KUSTOMIZE) build $(AZURE_TEMPLATES)/v1beta1/cluster-template-md-remediation --load-restrictor LoadRestrictionsNone > $(AZURE_TEMPLATES)/v1beta1/cluster-template-md-remediation.yaml
497497
$(KUSTOMIZE) build $(AZURE_TEMPLATES)/v1beta1/cluster-template-kcp-remediation --load-restrictor LoadRestrictionsNone > $(AZURE_TEMPLATES)/v1beta1/cluster-template-kcp-remediation.yaml
498498
$(KUSTOMIZE) build $(AZURE_TEMPLATES)/v1beta1/cluster-template-machine-pool --load-restrictor LoadRestrictionsNone > $(AZURE_TEMPLATES)/v1beta1/cluster-template-machine-pool.yaml
499+
$(KUSTOMIZE) build $(AZURE_TEMPLATES)/v1beta1/cluster-template-machine-and-machine-pool --load-restrictor LoadRestrictionsNone > $(AZURE_TEMPLATES)/v1beta1/cluster-template-machine-and-machine-pool.yaml
499500
$(KUSTOMIZE) build $(AZURE_TEMPLATES)/v1beta1/cluster-template-node-drain --load-restrictor LoadRestrictionsNone > $(AZURE_TEMPLATES)/v1beta1/cluster-template-node-drain.yaml
500501
$(KUSTOMIZE) build $(AZURE_TEMPLATES)/v1beta1/cluster-template-upgrades --load-restrictor LoadRestrictionsNone > $(AZURE_TEMPLATES)/v1beta1/cluster-template-upgrades.yaml
501502
$(KUSTOMIZE) build $(AZURE_TEMPLATES)/v1beta1/cluster-template-kcp-scale-in --load-restrictor LoadRestrictionsNone > $(AZURE_TEMPLATES)/v1beta1/cluster-template-kcp-scale-in.yaml

test/e2e/capi_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ var _ = Describe("Running the Cluster API E2E tests", func() {
206206
return capi_e2e.ClusterctlUpgradeSpecInput{
207207
E2EConfig: e2eConfig,
208208
ClusterctlConfigPath: clusterctlConfigPath,
209+
WorkloadFlavor: "machine-and-machine-pool",
209210
BootstrapClusterProxy: bootstrapClusterProxy,
210211
ArtifactFolder: artifactFolder,
211212
SkipCleanup: skipCleanup,
@@ -230,6 +231,7 @@ var _ = Describe("Running the Cluster API E2E tests", func() {
230231
return capi_e2e.ClusterctlUpgradeSpecInput{
231232
E2EConfig: e2eConfig,
232233
ClusterctlConfigPath: clusterctlConfigPath,
234+
WorkloadFlavor: "machine-and-machine-pool",
233235
BootstrapClusterProxy: bootstrapClusterProxy,
234236
ArtifactFolder: artifactFolder,
235237
SkipCleanup: skipCleanup,

test/e2e/config/azure-dev.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ providers:
9191
- sourcePath: "../data/shared/v1beta1_provider/metadata.yaml"
9292
- sourcePath: "../data/infrastructure-azure/v1.16.1/cluster-template-prow.yaml"
9393
targetName: "cluster-template.yaml"
94+
- sourcePath: "../data/infrastructure-azure/v1.16.1/cluster-template-prow-machine-and-machine-pool.yaml"
95+
targetName: "cluster-template-machine-and-machine-pool.yaml"
9496
replacements:
9597
- old: "imagePullPolicy: Always"
9698
new: "imagePullPolicy: IfNotPresent"
@@ -102,6 +104,8 @@ providers:
102104
- sourcePath: "../data/shared/v1beta1_provider/metadata.yaml"
103105
- sourcePath: "../data/infrastructure-azure/v1.17.0/cluster-template-prow.yaml"
104106
targetName: "cluster-template.yaml"
107+
- sourcePath: "../data/infrastructure-azure/v1.17.0/cluster-template-prow-machine-and-machine-pool.yaml"
108+
targetName: "cluster-template-machine-and-machine-pool.yaml"
105109
replacements:
106110
- old: "imagePullPolicy: Always"
107111
new: "imagePullPolicy: IfNotPresent"
@@ -119,6 +123,7 @@ providers:
119123
- sourcePath: "../data/infrastructure-azure/v1beta1/cluster-template-kcp-scale-in.yaml"
120124
- sourcePath: "../data/infrastructure-azure/v1beta1/cluster-template-node-drain.yaml"
121125
- sourcePath: "../data/infrastructure-azure/v1beta1/cluster-template-upgrades.yaml"
126+
- sourcePath: "../data/infrastructure-azure/v1beta1/cluster-template-machine-and-machine-pool.yaml"
122127
- sourcePath: "${PWD}/templates/test/ci/cluster-template-prow-machine-pool.yaml"
123128
targetName: "cluster-template-machine-pool.yaml"
124129
- sourcePath: "${PWD}/templates/test/ci/cluster-template-prow-ipv6.yaml"

0 commit comments

Comments
 (0)