Skip to content

Commit 109894c

Browse files
committed
Cleanup flatcar images
Signed-off-by: Christian Berendt <berendt@osism.tech>
1 parent 5d2fa05 commit 109894c

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

contrib/mirror.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,16 @@ def main(
9393
continue
9494

9595
if not image["shortname"].startswith(
96-
("almalinux", "centos", "debian", "rocky", "ubuntu", "gardenlinux", "talos")
96+
(
97+
"almalinux",
98+
"centos",
99+
"debian",
100+
"rocky",
101+
"ubuntu",
102+
"gardenlinux",
103+
"talos",
104+
"flatcar",
105+
)
97106
):
98107
continue
99108

@@ -112,7 +121,7 @@ def main(
112121
)
113122
_, mirror_fileextension2 = os.path.splitext(mirror_filename)
114123

115-
if not image["shortname"].startswith(("gardenlinux", "talos")):
124+
if not image["shortname"].startswith(("gardenlinux", "talos", "flatcar")):
116125
mirror_filename = f"{version['version']}-{image['shortname']}"
117126

118127
if mirror_fileextension not in [".bz2", ".zip", ".xz", ".gz"]:
@@ -129,7 +138,9 @@ def main(
129138
)
130139
_, source_fileextension2 = os.path.splitext(source_filename)
131140

132-
if source_fileextension not in [".bz2", ".zip", ".xz", ".gz"]:
141+
if image["shortname"].startswith(("flatcar")):
142+
mirror_dirname = os.path.join(mirror_dirname, version["version"])
143+
elif source_fileextension not in [".bz2", ".zip", ".xz", ".gz"]:
133144
source_filename += source_fileextension
134145
else:
135146
mirror_dirname = os.path.join(mirror_dirname, version["version"])

etc/images/flatcar.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,8 @@ images:
2525
provided_until: none
2626
tags: []
2727
versions:
28-
- version: '3227.2.4'
29-
url: https://stable.release.flatcar-linux.net/amd64-usr/3227.2.4/flatcar_production_openstack_image.img.bz2
30-
mirror_url: https://nbg1.your-objectstorage.com/osism/openstack-images/flatcar/3227.2.4/flatcar_production_openstack_image.img
31-
checksum: "sha256:774a4fd77da47a7c91714e6424891d6887ed7b9b72daadc40d56bb2f7527b4f5"
32-
build_date: 2022-10-27
33-
- version: '3602.2.3'
34-
url: https://stable.release.flatcar-linux.net/amd64-usr/3602.2.3/flatcar_production_openstack_image.img
35-
mirror_url: https://nbg1.your-objectstorage.com/osism/openstack-images/flatcar/3602.2.3/flatcar_production_openstack_image.img
36-
checksum: "sha256:23b2d10aa0adf53d58bca0d9664338bdd308bef9e56f8393d39cb5e22bff4409"
37-
build_date: 2023-12-11
38-
- version: '3815.2.1'
39-
url: https://stable.release.flatcar-linux.net/amd64-usr/3815.2.1/flatcar_production_openstack_image.img
40-
mirror_url: https://nbg1.your-objectstorage.com/osism/openstack-images/flatcar/3815.2.1/flatcar_production_openstack_image.img
41-
checksum: "sha256:84d83adc4bc3537285a6193db18e437f2208d4e6f897000a86014751ac080e1f"
42-
build_date: 2024-03-17
28+
- version: '4230.2.4'
29+
url: https://stable.release.flatcar-linux.net/amd64-usr/4230.2.4/flatcar_production_openstack_image.img
30+
mirror_url: https://nbg1.your-objectstorage.com/osism/openstack-images/flatcar/4230.2.4/flatcar_production_openstack_image.img
31+
checksum: "sha512:e1b5891a3dc1d5c9249e5ddbda53f464e7dc65a86770a6e8bdad5604b1eb3599cc3908b8460fd3c516f115d6b139f5a3cefee0f08847e8b36d76d7628f7468a1"
32+
build_date: 2025-10-13

0 commit comments

Comments
 (0)