Skip to content

Commit c0194c7

Browse files
Cleanup 'docker-previous-version' template and add gzipUserData field in templates
New version of CAPRKE2 (v0.19.0) is out, hence we can now remove previous version template introduced in #649 to workaround e2e complications. Signed-off-by: Furkat Gofurov <[email protected]>
1 parent 72ed812 commit c0194c7

7 files changed

+12
-214
lines changed

test/e2e/config/e2e_conf.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ providers:
3636
contract: v1beta1
3737
files:
3838
- sourcePath: "../data/infrastructure/cluster-template-docker.yaml"
39-
- sourcePath: "../data/infrastructure/cluster-template-docker-previous-version.yaml"
4039
- sourcePath: "../data/infrastructure/cluster-template-docker-move.yaml"
4140
- sourcePath: "../data/infrastructure/cluster-template-kcp-remediation.yaml"
4241
- sourcePath: "../data/shared/v1beta1/metadata.yaml"

test/e2e/data/infrastructure/cluster-template-docker-move.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ spec:
114114
- anonymous-auth=true
115115
ntp:
116116
enabled: true
117+
gzipUserData: false
117118
serverConfig:
118119
disableComponents:
119120
pluginComponents:
@@ -194,4 +195,5 @@ metadata:
194195
name: ${CLUSTER_NAME}-md-0
195196
spec:
196197
template:
197-
spec: {}
198+
spec:
199+
gzipUserData: false

test/e2e/data/infrastructure/cluster-template-docker-previous-version.yaml

Lines changed: 0 additions & 206 deletions
This file was deleted.

test/e2e/data/infrastructure/cluster-template-docker.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ spec:
133133
enabled: true
134134
nodeAnnotations:
135135
test: "true"
136-
gzipUserData: false
136+
gzipUserData: true
137137
serverConfig:
138138
disableComponents:
139139
pluginComponents:
@@ -232,4 +232,4 @@ spec:
232232
agentConfig:
233233
nodeAnnotations:
234234
test: "true"
235-
gzipUserData: false
235+
gzipUserData: true

test/e2e/data/infrastructure/cluster-template-kcp-remediation.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ spec:
134134
type: "RollingUpdate"
135135
rollingUpdate:
136136
maxSurge: 1
137+
gzipUserData: false
137138
serverConfig:
138139
disableComponents:
139140
pluginComponents:
@@ -203,7 +204,8 @@ metadata:
203204
name: ${CLUSTER_NAME}-mhc-0
204205
spec:
205206
template:
206-
spec: {}
207+
spec:
208+
gzipUserData: false
207209
---
208210
apiVersion: cluster.x-k8s.io/v1beta1
209211
kind: MachineHealthCheck

test/e2e/data/infrastructure/clusterclass-template-docker.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ metadata:
154154
spec:
155155
template:
156156
spec:
157+
gzipUserData: false
157158
serverConfig:
158159
cni: calico
159160
disableComponents:

test/e2e/e2e_upgrade_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ var _ = Describe("Provider upgrade", func() {
9898
ClusterctlConfigPath: clusterctlConfigPath,
9999
KubeconfigPath: bootstrapClusterProxy.GetKubeconfigPath(),
100100
InfrastructureProvider: "docker",
101-
Flavor: "docker-previous-version",
101+
Flavor: "docker",
102102
Namespace: namespace.Name,
103103
ClusterName: clusterName,
104104
KubernetesVersion: e2eConfig.GetVariable(KubernetesVersion),
@@ -164,7 +164,7 @@ var _ = Describe("Provider upgrade", func() {
164164
ClusterctlConfigPath: clusterctlConfigPath,
165165
KubeconfigPath: bootstrapClusterProxy.GetKubeconfigPath(),
166166
InfrastructureProvider: "docker",
167-
Flavor: "docker-previous-version",
167+
Flavor: "docker",
168168
Namespace: namespace.Name,
169169
ClusterName: clusterName,
170170
KubernetesVersion: e2eConfig.GetVariable(KubernetesVersion),
@@ -189,7 +189,7 @@ var _ = Describe("Provider upgrade", func() {
189189
ClusterctlConfigPath: clusterctlConfigPath,
190190
KubeconfigPath: bootstrapClusterProxy.GetKubeconfigPath(),
191191
InfrastructureProvider: "docker",
192-
Flavor: "docker-previous-version",
192+
Flavor: "docker",
193193
Namespace: namespace.Name,
194194
ClusterName: clusterName,
195195
KubernetesVersion: e2eConfig.GetVariable(KubernetesVersionUpgradeTo),

0 commit comments

Comments
 (0)