Skip to content

Commit 516e498

Browse files
committed
e2e/flatcar: use GZIP_COMPRESSION_ENABLED
Stable Flatcar release does support GZIP compression Signed-off-by: Mathieu Tortuyaux <[email protected]>
1 parent 2c8406c commit 516e498

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

e2e/capl-cluster-flavors/kubeadm-flatcar-vpcless-capl-cluster/chainsaw-test.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ spec:
2323
try:
2424
- assert:
2525
file: assert-capi-resources.yaml
26+
- name: Modify existing CAPI deployment to use GZIP user-data
27+
try:
28+
# TODO: Add operation check
29+
- patch:
30+
file: patch-capl-controller-manager.yaml
2631
- name: Upload Flatcar image
2732
try:
2833
- script:
@@ -37,14 +42,13 @@ spec:
3742
value: (env('LINODE_REGION'))
3843
content: |
3944
set -e
40-
# Get the latest version on Beta channel.
41-
# NOTE: This can be changed to Stable when Akamai support will come on these channels.
45+
# Get the latest version on Stable channel.
4246
curl -fsSL --remote-name \
43-
https://beta.release.flatcar-linux.net/amd64-usr/current/flatcar_production_akamai_image.bin.gz
47+
https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_akamai_image.bin.gz
4448
4549
res=$(curl -s --request POST \
4650
--url "https://${TARGET_API}/${TARGET_API_VERSION}/${URI}" \
47-
--data '{"region":"'${LINODE_REGION}'","cloud_init":true,"label":"flatcar-beta"}' \
51+
--data '{"region":"'${LINODE_REGION}'","cloud_init":true,"label":"flatcar-stable"}' \
4852
--header "Authorization: Bearer ${LINODE_TOKEN}" \
4953
--header "accept: application/json" \
5054
--header "content-type: application/json")
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: capl-controller-manager
5+
namespace: capl-system
6+
spec:
7+
template:
8+
spec:
9+
containers:
10+
- name: manager
11+
env:
12+
- name: GZIP_COMPRESSION_ENABLED
13+
value: "true"

0 commit comments

Comments
 (0)