Skip to content

Commit

Permalink
debian: upgrade to 1.31.1
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 Nov 28, 2024
1 parent c5e1b28 commit 2e63c00
Show file tree
Hide file tree
Showing 6 changed files with 17 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+mel5) UNRELEASED; urgency=medium

* upgrade k3s

-- Industrial OS Team <[email protected]> Mon, 25 Nov 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
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
3 changes: 3 additions & 0 deletions scripts/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ GO=${GO-go}
ARCH=${ARCH:-$("${GO}" env GOARCH)}
OS=${OS:-$("${GO}" env GOOS)}
SUFFIX="-${ARCH}"
# bypass the dependency of DRONE_TAG by initializing to git tag version.
# DRONE_TAG is used by dapper but this is not used in the build process
DRONE_TAG=v1.31.1-k3s1
GIT_TAG=$DRONE_TAG
TREE_STATE=clean
COMMIT=$DRONE_COMMIT
Expand Down

0 comments on commit 2e63c00

Please sign in to comment.