Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new(kernel_crawler): rename distro keys to match os-release names. #188

Merged
merged 2 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/update-kernels.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
name: Update Kernels

on:

Check warning on line 4 in .github/workflows/update-kernels.yml

View workflow job for this annotation

GitHub Actions / Lints and Scans

4:1 [truthy] truthy value should be one of [false, true]
workflow_dispatch:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed to trigger a refresh of kernels lists, allowing falcosecurity/dbg-go#36 CI to be green.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anyway, we can leave it there, it makes no harm after all.

schedule:
- cron: '30 6 * * *'

Expand Down
50 changes: 22 additions & 28 deletions kernel_crawler/crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,35 +37,29 @@

from .talos import TalosMirror

# Keys are taken from /etc/os-release where available.
# Must be the same used by driverkit builders (https://github.com/falcosecurity/driverkit).
DISTROS = {
'AliyunLinux': AliyunLinuxMirror,
'AlmaLinux': AlmaLinuxMirror,
'AmazonLinux': AmazonLinux1Mirror,
'AmazonLinux2': AmazonLinux2Mirror,
'AmazonLinux2022': AmazonLinux2022Mirror,
'AmazonLinux2023': AmazonLinux2023Mirror,
'CentOS': CentosMirror,
'Fedora': FedoraMirror,
'OracleLinux': OracleMirror,
'PhotonOS': PhotonOsMirror,
'RockyLinux': RockyLinuxMirror,

'OpenSUSE': OpenSUSEMirror,

'Debian': DebianMirror,
'Ubuntu': UbuntuMirror,

'Flatcar': FlatcarMirror,

'Minikube': MinikubeMirror,

'Redhat': RedhatContainer,

'ArchLinux': ArchLinuxMirror,

'BottleRocket': BottleRocketMirror,

'Talos': TalosMirror,
'alinux': AliyunLinuxMirror,
'almalinux': AlmaLinuxMirror,
'amazonlinux': AmazonLinux1Mirror,
'amazonlinux2': AmazonLinux2Mirror,
'amazonlinux2022': AmazonLinux2022Mirror,
'amazonlinux2023': AmazonLinux2023Mirror,
'centos': CentosMirror,
'fedora': FedoraMirror,
'ol': OracleMirror,
'photon': PhotonOsMirror,
'rocky': RockyLinuxMirror,
'opensuse': OpenSUSEMirror,
'debian': DebianMirror,
'ubuntu': UbuntuMirror,
'flatcar': FlatcarMirror,
'minikube': MinikubeMirror,
'redhat': RedhatContainer,
'arch': ArchLinuxMirror,
'bottlerocket': BottleRocketMirror,
'talos': TalosMirror,
}

def to_driverkit_config(d, res):
Expand Down
Loading