From ad8a1767a741085f1f68acad07bf5b952f3d5d0e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 14 Jan 2026 12:20:09 +0100 Subject: [PATCH] chore(deps): update golangci/golangci-lint docker tag to v2.8.0 (#721) Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Signed-off-by: Marco Nenciarini Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Marco Nenciarini --- Taskfile.yml | 2 +- internal/cnpgi/operator/lifecycle.go | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index dd3a012..f66e57b 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -21,7 +21,7 @@ tasks: # renovate: datasource=git-refs depName=golangci-lint lookupName=https://github.com/sagikazarmark/daggerverse currentValue=main DAGGER_GOLANGCI_LINT_SHA: 5dcc7e4c4cd5ed230046955f42e27f2166545155 # renovate: datasource=docker depName=golangci/golangci-lint versioning=semver - GOLANGCI_LINT_VERSION: v2.7.2 + GOLANGCI_LINT_VERSION: v2.8.0 cmds: - > GITHUB_REF= dagger -sc "github.com/sagikazarmark/daggerverse/golangci-lint@${DAGGER_GOLANGCI_LINT_SHA} diff --git a/internal/cnpgi/operator/lifecycle.go b/internal/cnpgi/operator/lifecycle.go index 43c8ee8..8a0bbb5 100644 --- a/internal/cnpgi/operator/lifecycle.go +++ b/internal/cnpgi/operator/lifecycle.go @@ -353,30 +353,31 @@ func reconcilePodSpec( sidecarTemplate corev1.Container, config sidecarConfiguration, ) error { - envs := []corev1.EnvVar{ - { + envs := make([]corev1.EnvVar, 0, 5+len(config.env)) + envs = append(envs, + corev1.EnvVar{ Name: "NAMESPACE", Value: cluster.Namespace, }, - { + corev1.EnvVar{ Name: "CLUSTER_NAME", Value: cluster.Name, }, - { + corev1.EnvVar{ // TODO: should we really use this one? // should we mount an emptyDir volume just for that? Name: "SPOOL_DIRECTORY", Value: "/controller/wal-restore-spool", }, - { + corev1.EnvVar{ Name: "CUSTOM_CNPG_GROUP", Value: cluster.GetObjectKind().GroupVersionKind().Group, }, - { + corev1.EnvVar{ Name: "CUSTOM_CNPG_VERSION", Value: cluster.GetObjectKind().GroupVersionKind().Version, }, - } + ) envs = append(envs, config.env...)