Skip to content

Commit bc78a6f

Browse files
authored
Merge branch 'siderolabs:main' into patch-1
2 parents d0faf14 + 9463ac2 commit bc78a6f

File tree

124 files changed

+7680
-2021
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+7680
-2021
lines changed

Dockerfile

Lines changed: 112 additions & 91 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ ZSTD_COMPRESSION_LEVEL ?= 18
1717
CI_RELEASE_TAG := $(shell git log --oneline --format=%B -n 1 HEAD^2 -- 2>/dev/null | head -n 1 | sed -r "/^release\(.*\)/ s/^release\((.*)\):.*$$/\\1/; t; Q")
1818

1919
ARTIFACTS := _out
20-
TOOLS ?= ghcr.io/siderolabs/tools:v1.10.0-alpha.0-7-g7200845
20+
TOOLS ?= ghcr.io/siderolabs/tools:v1.10.0-alpha.0-10-g9db33dd
2121

2222
DEBUG_TOOLS_SOURCE := scratch
2323
EMBED_TARGET ?= embed
2424

2525
PKGS_PREFIX ?= ghcr.io/siderolabs
26-
PKGS ?= v1.10.0-alpha.0-34-g5763e3e
27-
EXTRAS ?= v1.10.0-alpha.0-2-gf4a110f
26+
PKGS ?= v1.10.0-alpha.0-36-g117a1d6
27+
EXTRAS ?= v1.10.0-alpha.0-3-g4102a78
2828

2929
KRES_IMAGE ?= ghcr.io/siderolabs/kres:latest
3030
CONFORMANCE_IMAGE ?= ghcr.io/siderolabs/conform:latest
@@ -64,7 +64,7 @@ PKG_KMOD ?= $(PKGS_PREFIX)/kmod:$(PKGS)
6464
PKG_CNI ?= $(PKGS_PREFIX)/cni:$(PKGS)
6565
PKG_FLANNEL_CNI ?= $(PKGS_PREFIX)/flannel-cni:$(PKGS)
6666
PKG_KERNEL ?= $(PKGS_PREFIX)/kernel:$(PKGS)
67-
PKG_TALOSCTL_CNI_BUNDLE_INSTALL ?= $(PKGS_PREFIX)/talosctl-cni-bundle-install:$(EXTRAS)
67+
PKG_TALOSCTL_CNI_BUNDLE ?= $(PKGS_PREFIX)/talosctl-cni-bundle:$(EXTRAS)
6868

6969
# renovate: datasource=github-tags depName=golang/go
7070
GO_VERSION ?= 1.23
@@ -267,7 +267,7 @@ COMMON_ARGS += --build-arg=PKG_RASPBERYPI_FIRMWARE=$(PKG_RASPBERYPI_FIRMWARE)
267267
COMMON_ARGS += --build-arg=PKG_CNI=$(PKG_CNI)
268268
COMMON_ARGS += --build-arg=PKG_FLANNEL_CNI=$(PKG_FLANNEL_CNI)
269269
COMMON_ARGS += --build-arg=PKG_KERNEL=$(PKG_KERNEL)
270-
COMMON_ARGS += --build-arg=PKG_TALOSCTL_CNI_BUNDLE_INSTALL=$(PKG_TALOSCTL_CNI_BUNDLE_INSTALL)
270+
COMMON_ARGS += --build-arg=PKG_TALOSCTL_CNI_BUNDLE=$(PKG_TALOSCTL_CNI_BUNDLE)
271271
COMMON_ARGS += --build-arg=ABBREV_TAG=$(ABBREV_TAG)
272272
COMMON_ARGS += --build-arg=ZSTD_COMPRESSION_LEVEL=$(ZSTD_COMPRESSION_LEVEL)
273273
COMMON_ARGS += --build-arg=MICROSOFT_SECUREBOOT_RELEASE=$(MICROSOFT_SECUREBOOT_RELEASE)

api/resource/definitions/block/block.proto

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,29 @@ message LocatorSpec {
111111
google.api.expr.v1alpha1.CheckedExpr match = 1;
112112
}
113113

114+
// MountRequestSpec is the spec for MountRequest.
115+
message MountRequestSpec {
116+
string volume_id = 1;
117+
string parent_mount_id = 2;
118+
repeated string requesters = 3;
119+
repeated string requester_i_ds = 4;
120+
bool read_only = 5;
121+
}
122+
114123
// MountSpec is the spec for volume mount.
115124
message MountSpec {
116125
string target_path = 1;
117126
string selinux_label = 2;
127+
repeated string options = 3;
128+
}
129+
130+
// MountStatusSpec is the spec for MountStatus.
131+
message MountStatusSpec {
132+
MountRequestSpec spec = 1;
133+
string target = 2;
134+
string source = 3;
135+
talos.resource.definitions.enums.BlockFilesystemType filesystem = 4;
136+
bool read_only = 5;
118137
}
119138

120139
// PartitionSpec is the spec for volume partitioning.
@@ -160,6 +179,21 @@ message VolumeConfigSpec {
160179
EncryptionSpec encryption = 6;
161180
}
162181

182+
// VolumeMountRequestSpec is the spec for VolumeMountRequest.
183+
message VolumeMountRequestSpec {
184+
string volume_id = 1;
185+
string requester = 2;
186+
bool read_only = 3;
187+
}
188+
189+
// VolumeMountStatusSpec is the spec for VolumeMountStatus.
190+
message VolumeMountStatusSpec {
191+
string volume_id = 1;
192+
string requester = 2;
193+
string target = 3;
194+
bool read_only = 4;
195+
}
196+
163197
// VolumeStatusSpec is the spec for VolumeStatus resource.
164198
message VolumeStatusSpec {
165199
talos.resource.definitions.enums.BlockVolumePhase phase = 1;
@@ -176,5 +210,6 @@ message VolumeStatusSpec {
176210
talos.resource.definitions.enums.BlockEncryptionProviderType encryption_provider = 12;
177211
string pretty_size = 13;
178212
repeated string encryption_failed_syncs = 14;
213+
MountSpec mount_spec = 15;
179214
}
180215

api/resource/definitions/network/network.proto

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,32 @@ message DNSResolveCacheSpec {
102102
string status = 1;
103103
}
104104

105+
// EthernetChannelsSpec describes config of Ethernet channels.
106+
message EthernetChannelsSpec {
107+
uint32 rx = 1;
108+
uint32 tx = 2;
109+
uint32 other = 3;
110+
uint32 combined = 4;
111+
}
112+
113+
// EthernetChannelsStatus describes status of Ethernet channels.
114+
message EthernetChannelsStatus {
115+
uint32 rx_max = 1;
116+
uint32 tx_max = 2;
117+
uint32 other_max = 3;
118+
uint32 combined_max = 4;
119+
uint32 rx = 5;
120+
uint32 tx = 6;
121+
uint32 other = 7;
122+
uint32 combined = 8;
123+
}
124+
125+
// EthernetFeatureStatus describes status of Ethernet features.
126+
message EthernetFeatureStatus {
127+
string name = 1;
128+
string status = 2;
129+
}
130+
105131
// EthernetRingsSpec describes config of Ethernet rings.
106132
message EthernetRingsSpec {
107133
uint32 rx = 1;
@@ -138,6 +164,8 @@ message EthernetRingsStatus {
138164
// EthernetSpecSpec describes config of Ethernet link.
139165
message EthernetSpecSpec {
140166
EthernetRingsSpec rings = 1;
167+
map<string, bool> features = 2;
168+
EthernetChannelsSpec channels = 3;
141169
}
142170

143171
// EthernetStatusSpec describes status of rendered secrets.
@@ -149,6 +177,8 @@ message EthernetStatusSpec {
149177
repeated string our_modes = 5;
150178
repeated string peer_modes = 6;
151179
EthernetRingsStatus rings = 7;
180+
repeated EthernetFeatureStatus features = 8;
181+
EthernetChannelsStatus channels = 9;
152182
}
153183

154184
// HardwareAddrSpec describes spec for the link.

cmd/talosctl/cmd/mgmt/cluster/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ func init() {
12951295
createCmd.Flags().BoolVar(&clusterDiskPreallocate, clusterDiskPreallocateFlag, true, "whether disk space should be preallocated")
12961296
createCmd.Flags().StringSliceVar(&clusterDisks, clusterDisksFlag, []string{}, "list of disks to create for each VM in format: <mount_point1>:<size1>:<mount_point2>:<size2>")
12971297
createCmd.Flags().IntVar(&extraDisks, "extra-disks", 0, "number of extra disks to create for each worker VM")
1298-
createCmd.Flags().StringSliceVar(&extraDisksDrivers, "extra-disks-drivers", nil, "driver for each extra disk (virtio, ide, ahci, scsi, nvme)")
1298+
createCmd.Flags().StringSliceVar(&extraDisksDrivers, "extra-disks-drivers", nil, "driver for each extra disk (virtio, ide, ahci, scsi, nvme, megaraid)")
12991299
createCmd.Flags().IntVar(&extraDiskSize, "extra-disks-size", 5*1024, "default limit on disk size in MB (each VM)")
13001300
createCmd.Flags().StringVar(&targetArch, "arch", stdruntime.GOARCH, "cluster architecture")
13011301
createCmd.Flags().BoolVar(&clusterWait, "wait", true, "wait for the cluster to be ready before returning")

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/siderolabs/talos
22

3-
go 1.23.5
3+
go 1.23.6
44

55
replace (
66
// see e.g. https://github.com/grpc/grpc-go/issues/6696
@@ -10,7 +10,7 @@ replace (
1010
github.com/coredns/coredns => github.com/siderolabs/coredns v1.12.50
1111

1212
// forked ethtool introduces missing APIs
13-
github.com/mdlayher/ethtool => github.com/siderolabs/ethtool v0.0.0-20250204161245-ee04fc1b1856
13+
github.com/mdlayher/ethtool => github.com/siderolabs/ethtool v0.3.0
1414

1515
// see https://github.com/mdlayher/kobject/pull/5
1616
github.com/mdlayher/kobject => github.com/smira/kobject v0.0.0-20240304111826-49c8d4613389
@@ -145,7 +145,7 @@ require (
145145
github.com/siderolabs/gen v0.8.0
146146
github.com/siderolabs/go-api-signature v0.3.6
147147
github.com/siderolabs/go-blockdevice v0.4.8
148-
github.com/siderolabs/go-blockdevice/v2 v2.0.13
148+
github.com/siderolabs/go-blockdevice/v2 v2.0.14
149149
github.com/siderolabs/go-circular v0.2.1
150150
github.com/siderolabs/go-cmd v0.1.3
151151
github.com/siderolabs/go-copy v0.1.0

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -639,16 +639,16 @@ github.com/siderolabs/discovery-api v0.1.5 h1:fcHVkLkWla7C5+9IeOGEUQ4N8Yp9R7a/kc
639639
github.com/siderolabs/discovery-api v0.1.5/go.mod h1:b9jOm9T2puYVcRqCAjWxPcHz2qBqDX8I0OZDOyOFHXg=
640640
github.com/siderolabs/discovery-client v0.1.10 h1:bTAvFLiISSzVXyYL1cIgAz8cPYd9ZfvhxwdebgtxARA=
641641
github.com/siderolabs/discovery-client v0.1.10/go.mod h1:Ew1z07eyJwqNwum84IKYH4S649KEKK5WUmRW49HlXS8=
642-
github.com/siderolabs/ethtool v0.0.0-20250204161245-ee04fc1b1856 h1:LQe9knKlZXGdrm0J/bcojk42qqhfBoPpiqqgXQa/7pY=
643-
github.com/siderolabs/ethtool v0.0.0-20250204161245-ee04fc1b1856/go.mod h1:3u47fCDlOQGM7IhXhUB3uPEcjdQxGmK53/45kEg1HDM=
642+
github.com/siderolabs/ethtool v0.3.0 h1:98kMFGnkDEikngqtDyk6R/ykMjaGpJ1df/bw9vPLKJg=
643+
github.com/siderolabs/ethtool v0.3.0/go.mod h1:3u47fCDlOQGM7IhXhUB3uPEcjdQxGmK53/45kEg1HDM=
644644
github.com/siderolabs/gen v0.8.0 h1:Pj93+hexkk5hQ7izjJ6YXnEWc8vlzOmDwFz13/VzS7o=
645645
github.com/siderolabs/gen v0.8.0/go.mod h1:an3a2Y53O7kUjnnK8Bfu3gewtvnIOu5RTU6HalFtXQQ=
646646
github.com/siderolabs/go-api-signature v0.3.6 h1:wDIsXbpl7Oa/FXvxB6uz4VL9INA9fmr3EbmjEZYFJrU=
647647
github.com/siderolabs/go-api-signature v0.3.6/go.mod h1:hoH13AfunHflxbXfh+NoploqV13ZTDfQ1mQJWNVSW9U=
648648
github.com/siderolabs/go-blockdevice v0.4.8 h1:KfdWvIx0Jft5YVuCsFIJFwjWEF1oqtzkgX9PeU9cX4c=
649649
github.com/siderolabs/go-blockdevice v0.4.8/go.mod h1:4PeOuk71pReJj1JQEXDE7kIIQJPVe8a+HZQa+qjxSEA=
650-
github.com/siderolabs/go-blockdevice/v2 v2.0.13 h1:N94eK+EFwnD+2kdNT38910Qlu+5+Z0WDODKbX7NXvPs=
651-
github.com/siderolabs/go-blockdevice/v2 v2.0.13/go.mod h1:74htzCV913UzaLZ4H+NBXkwWlYnBJIq5m/379ZEcu8w=
650+
github.com/siderolabs/go-blockdevice/v2 v2.0.14 h1:9Nu4ceeKpCSUhSub6RbxU2eat5IwAOR11Vdb5mPVASo=
651+
github.com/siderolabs/go-blockdevice/v2 v2.0.14/go.mod h1:74htzCV913UzaLZ4H+NBXkwWlYnBJIq5m/379ZEcu8w=
652652
github.com/siderolabs/go-circular v0.2.1 h1:a++iVCn9jyhICX3POQZZX8n72p2h5JGdGU6w1ulmpcA=
653653
github.com/siderolabs/go-circular v0.2.1/go.mod h1:ZDItzVyXK+B/XuqTBV5MtQtSv06VI+oCmWGRnNCATo8=
654654
github.com/siderolabs/go-cmd v0.1.3 h1:JrgZwqhJQeoec3QRON0LK+fv+0y7d0DyY7zsfkO6ciw=

go.work

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
go 1.23.5
1+
go 1.23.6
22

33
use (
44
.

hack/cleanup.sh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
#!/toolchain/bin/bash
2-
3-
export PATH=/toolchain/bin
4-
1+
#!/bin/bash
52
PREFIX="${1}"
63

74
function remove_symlinks() {
@@ -25,16 +22,17 @@ find ${PREFIX} -type f -name \*.la -delete
2522
find ${PREFIX} -type f \( -name \*.static -o -name \*.o \) -delete
2623
# Strip debug symbols from all libraries and binaries.
2724
find ${PREFIX}/{lib,usr/lib} -type f \( -name \*.so* -a ! -name \*dbg \) -exec strip --strip-unneeded {} ';' || true
28-
find ${PREFIX}/{bin,sbin,usr/bin,usr/sbin} -type f -exec strip --strip-all {} ';' || true
25+
find ${PREFIX}/usr/bin -type f -exec strip --strip-all {} ';' || true
2926

3027
# Remove header files, man files, and any other non-runtime dependencies.
31-
rm -rf ${PREFIX}/{lib,usr/lib}/pkgconfig/ \
28+
rm -rf ${PREFIX}/usr/lib/pkgconfig/ \
3229
${PREFIX}/{include,usr/include}/* \
3330
${PREFIX}/{share,usr/share}/* \
3431
${PREFIX}/usr/lib/cmake \
35-
${PREFIX}/lib/gconv/ \
32+
${PREFIX}/usr/lib/gconv/ \
3633
${PREFIX}/usr/libexec/getconf \
3734
${PREFIX}/var/db
3835

3936
# Remove contents of /usr/bin except for udevadm
40-
find ${PREFIX}/usr/bin \( -type f -o -type l \) ! -name udevadm -delete
37+
# TODO: do not install these files in the first place.
38+
# find ${PREFIX}/usr/bin \( -type f -o -type l \) ! -name udevadm -delete

hack/cloud-image-uploader/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/siderolabs/cloud-image-uploader
22

3-
go 1.23.5
3+
go 1.23.6
44

55
require (
66
cloud.google.com/go/storage v1.49.0

0 commit comments

Comments
 (0)