From 1ae8d323ff355b13d003c4bf39ccb826d7ab3981 Mon Sep 17 00:00:00 2001 From: "scality-renovate[bot]" <234218835+scality-renovate[bot]@users.noreply.github.com> Date: Thu, 29 Oct 2026 04:20:29 +0000 Subject: [PATCH 1/4] chore(deps): update golang --- .devcontainer/Dockerfile | 4 ++-- Dockerfile | 2 +- Makefile | 6 +++--- go.mod | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index a22ca0a..e893553 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -6,7 +6,7 @@ USER vscode RUN sudo mkdir -p /usr/local/share/zsh/site-functions # renovate: datasource=github-releases depName=golangci/golangci-lint -ARG GOLANGCI_VERSION=v2.14.0 +ARG GOLANGCI_VERSION=v2.15.0 # Fetch the install script pinned to the release tag (not HEAD) before piping to sh. RUN curl -sSfL "https://raw.githubusercontent.com/golangci/golangci-lint/${GOLANGCI_VERSION}/install.sh" \ | sudo sh -s -- -b /usr/local/bin ${GOLANGCI_VERSION} \ @@ -34,7 +34,7 @@ RUN curl -sSfLo /tmp/kubectl "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/l && kubectl completion zsh | sudo tee /usr/local/share/zsh/site-functions/_kubectl >/dev/null # renovate: datasource=github-releases depName=kubernetes-sigs/kustomize extractVersion=^kustomize/(?v.+)$ -ARG KUSTOMIZE_VERSION=v5.8.1 +ARG KUSTOMIZE_VERSION=v5.8.3 RUN curl -sSfLo /tmp/kustomize.tar.gz "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2F${KUSTOMIZE_VERSION}/kustomize_${KUSTOMIZE_VERSION}_linux_amd64.tar.gz" \ && tar -C /tmp -xzf /tmp/kustomize.tar.gz kustomize \ && sudo install -m 0755 /tmp/kustomize /usr/local/bin/kustomize \ diff --git a/Dockerfile b/Dockerfile index 2be3736..df42d23 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.26@sha256:d52df9c279840adf958d017ebb275651ed8338b953d39817bc3633a2e6b1bbcc AS builder +FROM golang:1.27@sha256:2920bb124f1a2e12a1d39f0cab756ae0068441ee1da7655dec7f5e374944095b AS builder ARG TARGETOS ARG TARGETARCH diff --git a/Makefile b/Makefile index 593ea63..a713159 100644 --- a/Makefile +++ b/Makefile @@ -196,9 +196,9 @@ GOLANGCI_LINT = $(LOCALBIN)/golangci-lint ## Tool Versions # renovate: datasource=github-releases depName=kubernetes-sigs/kustomize extractVersion=^kustomize/(?.*)$ -KUSTOMIZE_VERSION ?= v5.8.1 +KUSTOMIZE_VERSION ?= v5.8.3 # renovate: datasource=github-releases depName=kubernetes-sigs/controller-tools -CONTROLLER_TOOLS_VERSION ?= v0.21.0 +CONTROLLER_TOOLS_VERSION ?= v0.23.0 #ENVTEST_VERSION is the controller-runtime version to use for setup-envtest, derived from go.mod ENVTEST_VERSION ?= $(shell v='$(call gomodver,sigs.k8s.io/controller-runtime)'; \ @@ -211,7 +211,7 @@ ENVTEST_K8S_VERSION ?= $(shell v='$(call gomodver,k8s.io/api)'; \ printf '%s\n' "$$v" | sed -E 's/^v?[0-9]+\.([0-9]+).*/1.\1/') # renovate: datasource=github-releases depName=golangci/golangci-lint -GOLANGCI_LINT_VERSION ?= v2.14.0 +GOLANGCI_LINT_VERSION ?= v2.15.0 .PHONY: kustomize kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary. diff --git a/go.mod b/go.mod index 0aac7be..0f46b51 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/scality/node-warden-operator -go 1.26.5 +go 1.27.3 require ( github.com/onsi/ginkgo/v2 v2.29.0 From fab566e26cd7e5cf3c3b32bcbe8ec5e26812a5aa Mon Sep 17 00:00:00 2001 From: Alex Rodriguez Date: Thu, 29 Oct 2026 11:42:28 +0100 Subject: [PATCH 2/4] chore(deps): build the custom golangci-lint at v2.15.0 The golang group bumps GOLANGCI_LINT_VERSION in the Makefile, but the binary the CI runs is built from .custom-gcl.yml, which Renovate does not track. v2.12.2 cannot read the export data of Go 1.27. Also disable modernize/embedlit, new with Go 1.27: it would rewrite tests and the controller, which belongs in its own change. --- .custom-gcl.yml | 2 +- .golangci.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.custom-gcl.yml b/.custom-gcl.yml index d9ae33b..6effe6a 100644 --- a/.custom-gcl.yml +++ b/.custom-gcl.yml @@ -3,7 +3,7 @@ # with all the plugins listed below. # # See: https://golangci-lint.run/plugins/module-plugins/ -version: v2.12.2 +version: v2.15.0 plugins: # logcheck validates structured logging calls and parameters (e.g., balanced key-value pairs) - module: "sigs.k8s.io/logtools" diff --git a/.golangci.yml b/.golangci.yml index b139f79..62fa5f6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -43,6 +43,7 @@ linters: disable: - omitzero - newexpr + - embedlit exclusions: generated: lax rules: From 16a2ddca5cd2dc04800bcc24111d790593dc6e20 Mon Sep 17 00:00:00 2001 From: Alex Rodriguez Date: Thu, 29 Oct 2026 11:42:30 +0100 Subject: [PATCH 3/4] chore(deps): regenerate the CRD with controller-tools v0.23.0 The golang group bumps controller-gen, which writes its version in the CRD annotations. Only that annotation changes. --- .../crd/bases/warden.scality.com_noderemediationpolicies.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/crd/bases/warden.scality.com_noderemediationpolicies.yaml b/config/crd/bases/warden.scality.com_noderemediationpolicies.yaml index 4fc5fe4..4cdbc6b 100644 --- a/config/crd/bases/warden.scality.com_noderemediationpolicies.yaml +++ b/config/crd/bases/warden.scality.com_noderemediationpolicies.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.21.0 + controller-gen.kubebuilder.io/version: v0.23.0 name: noderemediationpolicies.warden.scality.com spec: group: warden.scality.com From bb35105fd146dc1a1cd9cce733594748178f5fbd Mon Sep 17 00:00:00 2001 From: Alex Rodriguez Date: Thu, 29 Oct 2026 11:51:30 +0100 Subject: [PATCH 4/4] chore(deps): move the devcontainer and the docs to Go 1.27 The golang group moves go.mod to 1.27.3 but not the devcontainer base image, which Renovate does not group with Go here. Align it and the minimum version in CONTRIBUTING.md. --- .devcontainer/Dockerfile | 2 +- CONTRIBUTING.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index e893553..ca77c3e 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/devcontainers/go:1.26-trixie@sha256:638cb8e8c040d29fbd0bb9a0d174b10aef96683437f839048d091eb337a8ea85 +FROM mcr.microsoft.com/devcontainers/go:1.27-trixie@sha256:32aad7e9eefed4fe99987cc4efef2f9723bd57c556f171143ecf65e0ba855ff3 USER vscode diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3cdcd5d..782783b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,7 +8,7 @@ how it is built and why see [DESIGN.md](DESIGN.md). The repository ships a devcontainer (`.devcontainer/`) with Go and the pinned tooling (golangci-lint, kind, kubebuilder, kubectl, kustomize) already installed. Outside the -devcontainer you need Go 1.26+ and those tools on your `PATH` for the full workflow. +devcontainer you need Go 1.27+ and those tools on your `PATH` for the full workflow. Everyday commands: