Skip to content

Commit

Permalink
debian: upgrade to 1.31.1+k3s1
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
nicusorhuhulea committed Dec 10, 2024
1 parent c5e1b28 commit b6465d4
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
TARGETS := $(shell ls scripts | grep -v \\.sh)
GO_FILES ?= $$(find . -name '*.go' | grep -v generated)
GO_VERSION ?= 1.20.4
GO_VERSION ?= 1.22.6
USE_DAPPER ?= 1
UNAME := $(shell uname -m)
SHELL = /bin/bash
Expand Down
14 changes: 10 additions & 4 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
k3s (1.31.1+k3s1+ind1) UNRELEASED; urgency=medium

* upgrade k3s

-- Industrial OS Team <[email protected]> Tue, 10 Dec 2024 13:46:00 +0200

k3s (1.27.2+k3s1+mel4) UNRELEASED; urgency=medium

* set HOME in rules to allow successful go builds

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

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

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

-- Mentor Embedded <[email protected]> Tue, 11 Jul 2023 07:30:00 +0100
-- Industrial OS Team <[email protected]> Tue, 11 Jul 2023 07:30:00 +0100

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

* local package
* Correct service file exec locations

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

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

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

-- Joe MacDonald <joe.macdonald@siemens.com> Thu, 20 Apr 2023 16:14:13 -0400
-- Industrial OS Team <industrial-os@edge.siemens.cloud> Thu, 20 Apr 2023 16:14:13 -0400
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Rules-Requires-Root: no

Package: k3s
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, ca-certificates, conntrack-tools, iproute2, ipset, iptables, libc6 (>= 2.37), containerd
Depends: ${shlibs:Depends}, ${misc:Depends}, ca-certificates, conntrack, iproute2, ipset, iptables, libc6 (>= 2.36), runc, libipset13, containerd
Description: Lightweight Kubernetes client binary (k3s)
K3s - Lightweight Kubernetes - is a portable, extensible, open-source
platform for managing containerized workloads and services, that
Expand Down
3 changes: 3 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ License: Apache-2.0
.
On Debian systems, the complete text of the Apache version 2.0 license
can be found in "/usr/share/common-licenses/Apache-2.0".

Files: debian/*
Copyright: 2024, Siemens
7 changes: 7 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export USE_DAPPER ?= 0
# default solution to this problem for some packages:
# https://lists.debian.org/debian-mentors/2018/08/msg00003.html
export HOME = $(CURDIR)
# DRONE_TAG is used by dapper, which gets the version from the git tag,
# but because dapper is not used in the build process will initialize it
# here based on the git tag
DRONE_TAG=v1.31.1+k3s1

%:
dh $@
Expand All @@ -22,6 +26,9 @@ override_dh_auto_configure:
make generate
endif

override_dh_auto_build:
dh_auto_build -- DRONE_TAG=$(DRONE_TAG)

override_dh_auto_test:
@echo Skipping tests

Expand Down
2 changes: 1 addition & 1 deletion debian/source/lintian-overrides
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ unsupported-source-format
# upstream sources aren't part of the git source format
empty-upstream-sources
# this is the formatting used by the k3s.io project for their releases
malformed-debian-changelog-version 1.27.2+k3s1+mel1 (for non-native)
malformed-debian-changelog-version 1.31.1+k3s1+mel5 (for non-native)
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/k3s-io/k3s

go 1.22.5
go 1.22.6

replace (
github.com/Microsoft/hcsshim => github.com/Microsoft/hcsshim v0.11.7
Expand Down

0 comments on commit b6465d4

Please sign in to comment.