From eb22d087f9d5473e73712dc92d28ee60fad13657 Mon Sep 17 00:00:00 2001 From: Sina Darbouy Date: Fri, 27 Nov 2026 18:26:41 +0100 Subject: [PATCH] Pin Liqo and liqoctl to Harbor v0.0.0-50a39cf9. New provider installs should pull the upstream 50a39cf build, which leaves Kopf annotations on the provider. --- CHANGELOG.md | 4 ++++ configs/default.yaml | 6 +++--- internal/config/constants.go | 4 ++-- internal/install/prerequisites_test.go | 10 +++++----- internal/install/tools.go | 2 +- internal/install/tools_test.go | 14 +++++++------- 6 files changed, 22 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af741c3..486a225 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Pin Liqo and liqoctl to `v0.0.0-50a39cf9` (`oci://harbor.noderings.com/nrings/liqo:0.0.0-50a39cf9`). This is upstream Liqo `50a39cf`. Custom-resource reflection uses server-side apply, so provider Kopf annotations and finalizers stay in place. + ## [1.0.20] - 2026-11-24 ### Changed diff --git a/configs/default.yaml b/configs/default.yaml index 585f9bc..4d88293 100644 --- a/configs/default.yaml +++ b/configs/default.yaml @@ -41,16 +41,16 @@ calico: min_version: "v3.26.0" liqo: - version: "v0.0.0-3f1654f0" + version: "v0.0.0-50a39cf9" timeout: "10m" gw_service_type: "NodePort" gw_server_service_location: "Provider" pod_offloading_strategy: "Local" pod_cidr: "10.200.0.0/16" service_cidr: "10.201.0.0/16" - min_version: "v0.0.0-3f1654f0" + min_version: "v0.0.0-50a39cf9" chart_oci: "oci://harbor.noderings.com/nrings/liqo" - chart_version: "0.0.0-3f1654f0" + chart_version: "0.0.0-50a39cf9" proxy_url: "" # Optional proxy URL for liqo peer command api_server_url: "" # Optional; defaults to https://:6443 during registration gw_server_service_nodeport: "" # Optional UDP NodePort for liqoctl peer diff --git a/internal/config/constants.go b/internal/config/constants.go index cbf4a67..932beb0 100644 --- a/internal/config/constants.go +++ b/internal/config/constants.go @@ -55,9 +55,9 @@ const ( DefaultHarborPublicProject = "nrings" // DefaultLiqoVersion is the default Liqo / liqoctl version pin. - DefaultLiqoVersion = "v0.0.0-3f1654f0" + DefaultLiqoVersion = "v0.0.0-50a39cf9" // DefaultLiqoChartVersion is the Helm chart version (no leading v). - DefaultLiqoChartVersion = "0.0.0-3f1654f0" + DefaultLiqoChartVersion = "0.0.0-50a39cf9" // DefaultLiqoChartOCI is the OCI chart reference (without version tag). DefaultLiqoChartOCI = "oci://" + DefaultHarborRegistry + "/" + DefaultHarborPublicProject + "/liqo" // DefaultLiqoctlOCIRepo is the OCI project/repo prefix for liqoctl artifacts. diff --git a/internal/install/prerequisites_test.go b/internal/install/prerequisites_test.go index 6f9f468..5742062 100644 --- a/internal/install/prerequisites_test.go +++ b/internal/install/prerequisites_test.go @@ -12,8 +12,8 @@ func TestNewToolValidatorUsesPlatformPins(t *testing.T) { Components: map[string]api.ComponentPin{ api.ComponentLiqoctl: { Name: api.ComponentLiqoctl, - Version: "v0.0.0-3f1654f0", - MinVersion: "v0.0.0-3f1654f0", + Version: "v0.0.0-50a39cf9", + MinVersion: "v0.0.0-50a39cf9", }, api.ComponentHelm: { Name: api.ComponentHelm, @@ -24,8 +24,8 @@ func TestNewToolValidatorUsesPlatformPins(t *testing.T) { } v := NewToolValidator(pins, nil) - if got := v.requirements["liqoctl"].MinVersion; got != "0.0.0-3f1654f0" { - t.Fatalf("liqoctl min = %q, want 0.0.0-3f1654f0", got) + if got := v.requirements["liqoctl"].MinVersion; got != "0.0.0-50a39cf9" { + t.Fatalf("liqoctl min = %q, want 0.0.0-50a39cf9", got) } if got := v.requirements["helm"].MinVersion; got != "3.12.0" { t.Fatalf("helm min = %q, want 3.12.0", got) @@ -45,7 +45,7 @@ func TestNewToolValidatorFallsBackToConfigLiqoPin(t *testing.T) { func TestValidateVersionForkPin(t *testing.T) { v := NewValidator() - ok, err := v.validateVersion("Client version: v0.0.0-3f1654f0", "0.0.0-3f1654f0") + ok, err := v.validateVersion("Client version: v0.0.0-50a39cf9", "0.0.0-50a39cf9") if err != nil { t.Fatalf("validateVersion: %v", err) } diff --git a/internal/install/tools.go b/internal/install/tools.go index 5f9c202..f42d413 100644 --- a/internal/install/tools.go +++ b/internal/install/tools.go @@ -709,7 +709,7 @@ func parseOCIChartRef(ref string) (repo, version string) { return "", "" } withoutScheme := strings.TrimPrefix(ref, "oci://") - // harbor.noderings.com/nrings/liqo:0.0.0-3f1654f0 + // harbor.noderings.com/nrings/liqo:0.0.0-50a39cf9 if i := strings.LastIndex(withoutScheme, ":"); i > 0 { hostPath := withoutScheme[:i] ver := withoutScheme[i+1:] diff --git a/internal/install/tools_test.go b/internal/install/tools_test.go index 38366f2..49f112c 100644 --- a/internal/install/tools_test.go +++ b/internal/install/tools_test.go @@ -43,18 +43,18 @@ func TestDeriveToolDownloadURL(t *testing.T) { { name: "liqoctl", tool: "liqoctl", - version: "v0.0.0-3f1654f0", + version: "v0.0.0-50a39cf9", goos: "linux", goarch: "amd64", - want: "oci://harbor.noderings.com/nrings/liqoctl-linux-amd64:v0.0.0-3f1654f0", + want: "oci://harbor.noderings.com/nrings/liqoctl-linux-amd64:v0.0.0-50a39cf9", }, { name: "arch normalization", tool: "liqoctl", - version: "v0.0.0-3f1654f0", + version: "v0.0.0-50a39cf9", goos: "linux", goarch: "aarch64", - want: "oci://harbor.noderings.com/nrings/liqoctl-linux-arm64:v0.0.0-3f1654f0", + want: "oci://harbor.noderings.com/nrings/liqoctl-linux-arm64:v0.0.0-50a39cf9", }, { name: "override wins", @@ -321,9 +321,9 @@ func TestVersionSatisfiesTable(t *testing.T) { {"v1.0.0", "", "v1.0.0", true}, {"v0.9.0", "v1.1.1", "v1.0.0", false}, {"", "v1.0.0", "", false}, - {"Client version: v0.0.0-3f1654f0", "v0.0.0-3f1654f0", "", true}, - {"Client version: v1.1.1", "v0.0.0-3f1654f0", "", false}, - {"v1.1.1", "v0.0.0-3f1654f0", "", false}, + {"Client version: v0.0.0-50a39cf9", "v0.0.0-50a39cf9", "", true}, + {"Client version: v1.1.1", "v0.0.0-50a39cf9", "", false}, + {"v1.1.1", "v0.0.0-50a39cf9", "", false}, } for _, tc := range cases { if got := VersionSatisfies(tc.current, tc.required, tc.min); got != tc.want {