Skip to content

Commit bb01731

Browse files
committed
feat: mellanox-msflint extension
1 parent 23f9c81 commit bb01731

File tree

6 files changed

+43
-0
lines changed

6 files changed

+43
-0
lines changed

.kres.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ spec:
3030
- lldpd
3131
- mdadm
3232
- mei
33+
- mellanox-mstflint
3334
- metal-agent
3435
- nebula
3536
- nfsd

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ TARGETS += kata-containers
8585
TARGETS += lldpd
8686
TARGETS += mdadm
8787
TARGETS += mei
88+
TARGETS += mellanox-mstflint
8889
TARGETS += metal-agent
8990
TARGETS += nebula
9091
TARGETS += nfsd
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# mellanox-mstflint extension
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: v1alpha1
2+
metadata:
3+
name: mellanox-mstflint
4+
version: "$VERSION"
5+
author: Jean-Francois Roy
6+
description: |
7+
This system extension provides mstflint.
8+
compatibility:
9+
talos:
10+
version: ">= v1.2.0"

drivers/mellanox-mstflint/pkg.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: mellanox-mstflint
2+
variant: scratch
3+
shell: /bin/bash
4+
dependencies:
5+
- stage: base
6+
# The pkgs version for a particular release of Talos as defined in
7+
# https://github.com/siderolabs/talos/blob/<talos version>/pkg/machinery/gendata/data/pkgs
8+
- image: "{{ .BUILD_ARG_PKGS_PREFIX }}/mellanox-mstflint-pkg:{{ .BUILD_ARG_PKGS }}"
9+
steps:
10+
- prepare:
11+
- |
12+
sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml
13+
- install:
14+
- |
15+
mkdir -p /rootfs/usr/lib/modules
16+
17+
cp -R /usr/lib/modules/* /rootfs/usr/lib/modules
18+
- test:
19+
- |
20+
mkdir -p /extensions-validator-rootfs
21+
cp -r /rootfs/ /extensions-validator-rootfs/rootfs
22+
cp /pkg/manifest.yaml /extensions-validator-rootfs/manifest.yaml
23+
/extensions-validator validate --rootfs=/extensions-validator-rootfs --pkg-name="${PKG_NAME}"
24+
finalize:
25+
- from: /rootfs
26+
to: /rootfs
27+
- from: /pkg/manifest.yaml
28+
to: /
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# update when pkgs version is updated
2+
VERSION: "4.31.0-1-{{ .BUILD_ARG_TAG }}"

0 commit comments

Comments
 (0)