Skip to content

Commit 1e3db3e

Browse files
debian: upgrade to 1.31.1+k3s1
* update the go version in order for the k3s.service to start and the build to succeed. * preset DRONE_TAG in order to use the correct tag in the version script The official k3s build process is using dapper which we had to disable due to debian incompatibilities. DRONE_TAG is used by dapper therefore this was missing and the version part was falling back to a derived version which does not include the "k3s1" suffix. To ensure the proper versioning DRONE_TAG is initialized to the git tag version Signed-off-by: Nicusor Huhulea <nicusor.huhulea@siemens.com>
1 parent c5e1b28 commit 1e3db3e

6 files changed

Lines changed: 21 additions & 8 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
TARGETS := $(shell ls scripts | grep -v \\.sh)
22
GO_FILES ?= $$(find . -name '*.go' | grep -v generated)
3-
GO_VERSION ?= 1.20.4
3+
GO_VERSION ?= 1.22.6
44
USE_DAPPER ?= 1
55
UNAME := $(shell uname -m)
66
SHELL = /bin/bash

debian/changelog

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,31 @@
1+
k3s (1.31.1+k3s1+mel5) UNRELEASED; urgency=medium
2+
3+
* upgrade k3s
4+
5+
-- Industrial OS Team <industrial-os@edge.siemens.cloud> Mon, 25 Nov 2024 13:46:00 +0200
6+
17
k3s (1.27.2+k3s1+mel4) UNRELEASED; urgency=medium
28

39
* set HOME in rules to allow successful go builds
410

5-
-- Joe MacDonald <joe.macdonald@siemens.com> Fri, 14 Jul 2023 16:06:00 -0400
11+
-- Industrial OS Team <industrial-os@edge.siemens.cloud> Fri, 14 Jul 2023 16:06:00 -0400
612

713
k3s (1.27.2+k3s1+mel3) UNRELEASED; urgency=medium
814

915
* Add git to Build-Depends since debian/source/format requires it
1016

11-
-- Mentor Embedded <embedded_support@mentor.com> Tue, 11 Jul 2023 07:30:00 +0100
17+
-- Industrial OS Team <industrial-os@edge.siemens.cloud> Tue, 11 Jul 2023 07:30:00 +0100
1218

1319
k3s (1.27.2+k3s1+mel2) UNRELEASED; urgency=medium
1420

1521
* local package
1622
* Correct service file exec locations
1723

18-
-- Joe MacDonald <joe.macdonald@siemens.com> Tue, 04 Jul 2023 07:47:19 -0400
24+
-- Industrial OS Team <industrial-os@edge.siemens.cloud> Tue, 04 Jul 2023 07:47:19 -0400
1925

2026
k3s (1.27.2+k3s1+mel1) UNRELEASED; urgency=medium
2127

2228
* local package
2329
* Packaging k3s from meta-virtualization for Sokol Linux
2430

25-
-- Joe MacDonald <joe.macdonald@siemens.com> Thu, 20 Apr 2023 16:14:13 -0400
31+
-- Industrial OS Team <industrial-os@edge.siemens.cloud> Thu, 20 Apr 2023 16:14:13 -0400

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Rules-Requires-Root: no
99

1010
Package: k3s
1111
Architecture: any
12-
Depends: ${shlibs:Depends}, ${misc:Depends}, ca-certificates, conntrack-tools, iproute2, ipset, iptables, libc6 (>= 2.37), containerd
12+
Depends: ${shlibs:Depends}, ${misc:Depends}, ca-certificates, conntrack, iproute2, ipset, iptables, libc6 (>= 2.36), runc, libipset13, containerd
1313
Description: Lightweight Kubernetes client binary (k3s)
1414
K3s - Lightweight Kubernetes - is a portable, extensible, open-source
1515
platform for managing containerized workloads and services, that

debian/rules

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ export USE_DAPPER ?= 0
1010
# default solution to this problem for some packages:
1111
# https://lists.debian.org/debian-mentors/2018/08/msg00003.html
1212
export HOME = $(CURDIR)
13+
# DRONE_TAG is used by dapper, which gets the version from the git tag,
14+
# but because dapper is not used in the build process will initialize it
15+
# here based on the git tag
16+
DRONE_TAG=v1.31.1+k3s1
1317

1418
%:
1519
dh $@
@@ -22,6 +26,9 @@ override_dh_auto_configure:
2226
make generate
2327
endif
2428

29+
override_dh_auto_build:
30+
dh_auto_build -- DRONE_TAG=$(DRONE_TAG)
31+
2532
override_dh_auto_test:
2633
@echo Skipping tests
2734

debian/source/lintian-overrides

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ unsupported-source-format
3838
# upstream sources aren't part of the git source format
3939
empty-upstream-sources
4040
# this is the formatting used by the k3s.io project for their releases
41-
malformed-debian-changelog-version 1.27.2+k3s1+mel1 (for non-native)
41+
malformed-debian-changelog-version 1.31.1+k3s1+mel5 (for non-native)

go.mod

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

3-
go 1.22.5
3+
go 1.22.6
44

55
replace (
66
github.com/Microsoft/hcsshim => github.com/Microsoft/hcsshim v0.11.7

0 commit comments

Comments
 (0)