Skip to content

Commit ad8a176

Browse files
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 <marco.nenciarini@enterprisedb.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
1 parent e5eb03e commit ad8a176

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ tasks:
2121
# renovate: datasource=git-refs depName=golangci-lint lookupName=https://github.com/sagikazarmark/daggerverse currentValue=main
2222
DAGGER_GOLANGCI_LINT_SHA: 5dcc7e4c4cd5ed230046955f42e27f2166545155
2323
# renovate: datasource=docker depName=golangci/golangci-lint versioning=semver
24-
GOLANGCI_LINT_VERSION: v2.7.2
24+
GOLANGCI_LINT_VERSION: v2.8.0
2525
cmds:
2626
- >
2727
GITHUB_REF= dagger -sc "github.com/sagikazarmark/daggerverse/golangci-lint@${DAGGER_GOLANGCI_LINT_SHA}

internal/cnpgi/operator/lifecycle.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -353,30 +353,31 @@ func reconcilePodSpec(
353353
sidecarTemplate corev1.Container,
354354
config sidecarConfiguration,
355355
) error {
356-
envs := []corev1.EnvVar{
357-
{
356+
envs := make([]corev1.EnvVar, 0, 5+len(config.env))
357+
envs = append(envs,
358+
corev1.EnvVar{
358359
Name: "NAMESPACE",
359360
Value: cluster.Namespace,
360361
},
361-
{
362+
corev1.EnvVar{
362363
Name: "CLUSTER_NAME",
363364
Value: cluster.Name,
364365
},
365-
{
366+
corev1.EnvVar{
366367
// TODO: should we really use this one?
367368
// should we mount an emptyDir volume just for that?
368369
Name: "SPOOL_DIRECTORY",
369370
Value: "/controller/wal-restore-spool",
370371
},
371-
{
372+
corev1.EnvVar{
372373
Name: "CUSTOM_CNPG_GROUP",
373374
Value: cluster.GetObjectKind().GroupVersionKind().Group,
374375
},
375-
{
376+
corev1.EnvVar{
376377
Name: "CUSTOM_CNPG_VERSION",
377378
Value: cluster.GetObjectKind().GroupVersionKind().Version,
378379
},
379-
}
380+
)
380381

381382
envs = append(envs, config.env...)
382383

0 commit comments

Comments
 (0)