Skip to content

Commit

Permalink
e2e/flatcar: use GZIP_COMPRESSION_ENABLED
Browse files Browse the repository at this point in the history
Alpha Flatcar release does support GZIP compression

Signed-off-by: Mathieu Tortuyaux <[email protected]>
  • Loading branch information
tormath1 committed Nov 14, 2024
1 parent c34f669 commit 39f461e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ spec:
try:
- assert:
file: assert-capi-resources.yaml
- name: Modify existing CAPI deployment to use GZIP user-data
try:
# TODO: Add operation check
- patch:
file: patch-capl-controller-manager.yaml
- name: Upload Flatcar image
try:
- script:
Expand All @@ -37,10 +42,10 @@ spec:
value: (env('LINODE_REGION'))
content: |
set -e
# Get the latest version on Beta channel.
# NOTE: This can be changed to Stable when Akamai support will come on these channels.
# Get the latest version on Alpha channel.
# NOTE: This can be changed to Beta when Ignition GZIP support for Akamai will come on these channels.
curl -fsSL --remote-name \
https://beta.release.flatcar-linux.net/amd64-usr/current/flatcar_production_akamai_image.bin.gz
https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_production_akamai_image.bin.gz
res=$(curl -s --request POST \
--url "https://${TARGET_API}/${TARGET_API_VERSION}/${URI}" \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: capl-controller-manager
namespace: capl-system
spec:
template:
spec:
containers:
- name: manager
env:
- name: GZIP_COMPRESSION_ENABLED
value: "true"

0 comments on commit 39f461e

Please sign in to comment.