Updated CNI conflist file content, and ensured correct version stamping

This commit is contained in:
Raj Chaudhuri committed 2024-03-18 09:07:38 +05:30
1 parent bcab10a478
commit b46c77461d
5 files changed
+33 -5

No files matched your search

+18 -1
View File
@@ -2,7 +2,24 @@
All changes made to the weave net codebase during the reweave effort will be documented in this file.
## 2.8.3
## latest
### Changed
* Changed the CNI version configured in the `weave` script to `1.0.0`, as per [this](https://www.cni.dev/docs/spec/#configuration-format)
* Ensured that the weave version gets added to `weaveutil` via linker flag
## 2.8.4-beta1 (bcab10a4)
### Changed
* Added tracing The `launch.sh` and `init.sh` scripts if the WEAVE_DEBUG environment variable is set.
* When publishing images, the `:latest` tag is also applied. It will not be applied any more if the tag includes "-beta" anywhere.
### Fixed
* The Alpine Linux base image had been upgraded to 3.19.1. In this version, the default iptables backend is nftables, and the legacy backend is not included by default. Our scripts and programs assume legacy as the default backend, and change to nft if autodetected, or if we ask for it. So, changed our build script to install the Alpine `iptables-legacy` package, and changed the symbolic links to point to the legacy backend by default.
## 2.8.3 (d0878790)
### Changed
+1 -1
View File
@@ -1,4 +1,4 @@
IMAGE_VERSION ?= 2.8.4-beta1
IMAGE_VERSION ?= 2.8.4-beta2
REGISTRY_USER ?= rajchaudhuri
ALPINE_BASEIMAGE ?= alpine:3.19.1
+11 -1
View File
@@ -68,6 +68,13 @@ EXES=$(WEAVER_EXE) $(SIGPROXY_EXE) $(KUBEUTILS_EXE) $(WEAVENPC_EXE) $(WEAVEWAIT_
# -tags "osusergo netgo" to use native Go UID and DNS implementations
BUILD_FLAGS=-ldflags "-extldflags -static -X main.version=$(WEAVE_VERSION) -s -w" -tags "osusergo netgo"
# This allows adding up to three extra switches to the -ldflags value inside
# the same string returned by BUILD_FLAGS. Needed because the go # tool does
# not combine multiple -ldflags
define extraldflags
-ldflags "-extldflags -static -X main.version=$(WEAVE_VERSION) $(strip $(1) $(2) $(3)) -s -w" -tags "osusergo netgo"
endef
# Targets
all: showbuild exes
@@ -97,7 +104,10 @@ exes: $(EXES)
$(WEAVER_EXE):
CC=$(CC) GOOS=linux GOARCH=$(ARCH) go build $(BUILD_FLAGS) -o $@ ./$(@D)
$(WEAVEUTIL_EXE) $(KUBEUTILS_EXE) $(WEAVENPC_EXE) $(NETWORKTESTER_EXE):
$(WEAVEUTIL_EXE):
CC=$(CC) GOOS=linux GOARCH=$(ARCH) go build $(call extraldflags,-X github.com/containernetworking/plugins/pkg/utils/buildversion.BuildVersion=$(WEAVE_VERSION)) -o $@ ./$(@D)
$(KUBEUTILS_EXE) $(WEAVENPC_EXE) $(NETWORKTESTER_EXE):
CC=$(CC) GOOS=linux GOARCH=$(ARCH) go build $(BUILD_FLAGS) -o $@ ./$(@D)
$(WEAVEWAIT_EXE):
+2 -1
View File
@@ -14,7 +14,7 @@ fi
# These variables are used to control the build process
# Change with care.
: "${ALPINE_BASEIMAGE:=alpine:3.19.1}"
: "${WEAVE_VERSION=git-$(git rev-parse --short=12 HEAD)}"
: "${WEAVE_VERSION=${IMAGE_VERSION}}"
: "${GIT_REVISION=$(git rev-parse HEAD)}"
: "${PLATFORMS:=linux/amd64,linux/arm,linux/arm64,linux/ppc64le,linux/s390x}"
: "${PUBLISH:=}"
@@ -59,6 +59,7 @@ build_image() {
# shellcheck disable=SC2086
docker buildx build \
${POSTBUILD} \
--progress=plain \
--platform=${PLATFORMS} \
--target="$1" \
--build-arg=ALPINE_BASEIMAGE=${ALPINE_BASEIMAGE} \
+1 -1
View File
@@ -735,7 +735,7 @@ upgrade_cni_plugin() {
create_cni_config() {
cat >"$1" <<EOF
{
"cniVersion": "0.3.0",
"cniVersion": "1.0.0",
"name": "weave",
"disableCheck": true,
"plugins": [