Compare commits

..

1 Commits

Author SHA1 Message Date
Peggie
eb98101b2c chore(main): release 0.13.0
Signed-off-by: Peggie <info@cloudnative-pg.io>
2026-05-04 15:09:32 +02:00
8 changed files with 9 additions and 16 deletions

View File

@ -44,7 +44,7 @@ jobs:
- name: Install Dagger - name: Install Dagger
env: env:
# renovate: datasource=github-tags depName=dagger/dagger versioning=semver # renovate: datasource=github-tags depName=dagger/dagger versioning=semver
DAGGER_VERSION: 0.20.7 DAGGER_VERSION: 0.20.6
run: | run: |
curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh
- name: Run CI task - name: Run CI task

View File

@ -31,7 +31,7 @@ jobs:
- name: Install Dagger - name: Install Dagger
env: env:
# renovate: datasource=github-tags depName=dagger/dagger versioning=semver # renovate: datasource=github-tags depName=dagger/dagger versioning=semver
DAGGER_VERSION: 0.20.7 DAGGER_VERSION: 0.20.6
run: | run: |
curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh
- name: Create image and manifest - name: Create image and manifest

View File

@ -21,7 +21,7 @@ jobs:
- name: Install Dagger - name: Install Dagger
env: env:
# renovate: datasource=github-tags depName=dagger/dagger versioning=semver # renovate: datasource=github-tags depName=dagger/dagger versioning=semver
DAGGER_VERSION: 0.20.7 DAGGER_VERSION: 0.20.6
run: | run: |
curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh
- name: Create image and manifest - name: Create image and manifest

View File

@ -1,6 +1,6 @@
# Changelog # Changelog
## [0.13.0](https://github.com/cloudnative-pg/plugin-barman-cloud/compare/v0.12.0...v0.13.0) (2026-05-05) ## [0.13.0](https://github.com/cloudnative-pg/plugin-barman-cloud/compare/v0.12.0...v0.13.0) (2026-05-04)
### Features ### Features

View File

@ -23,7 +23,7 @@ tasks:
# renovate: datasource=git-refs depName=golangci-lint lookupName=https://github.com/sagikazarmark/daggerverse currentValue=main # renovate: datasource=git-refs depName=golangci-lint lookupName=https://github.com/sagikazarmark/daggerverse currentValue=main
DAGGER_GOLANGCI_LINT_SHA: 5f2dc1bd1014cf79757f4605f2f731ed962d4da7 DAGGER_GOLANGCI_LINT_SHA: 5f2dc1bd1014cf79757f4605f2f731ed962d4da7
# renovate: datasource=docker depName=golangci/golangci-lint versioning=semver # renovate: datasource=docker depName=golangci/golangci-lint versioning=semver
GOLANGCI_LINT_VERSION: v2.12.1 GOLANGCI_LINT_VERSION: v2.11.4
cmds: cmds:
- > - >
GITHUB_REF= dagger -sc "github.com/sagikazarmark/daggerverse/golangci-lint@${DAGGER_GOLANGCI_LINT_SHA} GITHUB_REF= dagger -sc "github.com/sagikazarmark/daggerverse/golangci-lint@${DAGGER_GOLANGCI_LINT_SHA}
@ -206,7 +206,7 @@ tasks:
- start-build-network - start-build-network
vars: vars:
# renovate: datasource=github-tags depName=dagger/dagger versioning=semver # renovate: datasource=github-tags depName=dagger/dagger versioning=semver
DAGGER_VERSION: 0.20.7 DAGGER_VERSION: 0.20.6
DAGGER_ENGINE_IMAGE: registry.dagger.io/engine:v{{ .DAGGER_VERSION }} DAGGER_ENGINE_IMAGE: registry.dagger.io/engine:v{{ .DAGGER_VERSION }}
cmds: cmds:
- > - >

View File

@ -41,9 +41,6 @@ import (
"github.com/cloudnative-pg/plugin-barman-cloud/internal/cnpgi/operator/config" "github.com/cloudnative-pg/plugin-barman-cloud/internal/cnpgi/operator/config"
) )
// fullRecoveryJobName is the name of the restore job.
const fullRecoveryJobName = "full-recovery"
// LifecycleImplementation is the implementation of the lifecycle handler // LifecycleImplementation is the implementation of the lifecycle handler
type LifecycleImplementation struct { type LifecycleImplementation struct {
lifecycle.UnimplementedOperatorLifecycleServer lifecycle.UnimplementedOperatorLifecycleServer
@ -51,8 +48,6 @@ type LifecycleImplementation struct {
} }
// GetCapabilities exposes the lifecycle capabilities // GetCapabilities exposes the lifecycle capabilities
//
//nolint:goconst
func (impl LifecycleImplementation) GetCapabilities( func (impl LifecycleImplementation) GetCapabilities(
_ context.Context, _ context.Context,
_ *lifecycle.OperatorLifecycleCapabilitiesRequest, _ *lifecycle.OperatorLifecycleCapabilitiesRequest,
@ -191,7 +186,7 @@ func reconcileJob(
contextLogger.Debug("starting job reconciliation") contextLogger.Debug("starting job reconciliation")
jobRole := getCNPGJobRole(&job) jobRole := getCNPGJobRole(&job)
if jobRole != fullRecoveryJobName && if jobRole != "full-recovery" &&
jobRole != "snapshot-recovery" { jobRole != "snapshot-recovery" {
contextLogger.Debug("job is not a recovery job, skipping") contextLogger.Debug("job is not a recovery job, skipping")
return nil, nil return nil, nil

View File

@ -139,10 +139,10 @@ var _ = Describe("LifecycleImplementation", func() {
Spec: batchv1.JobSpec{Template: corev1.PodTemplateSpec{ Spec: batchv1.JobSpec{Template: corev1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{ ObjectMeta: metav1.ObjectMeta{
Labels: map[string]string{ Labels: map[string]string{
utils.JobRoleLabelName: fullRecoveryJobName, utils.JobRoleLabelName: "full-recovery",
}, },
}, },
Spec: corev1.PodSpec{Containers: []corev1.Container{{Name: fullRecoveryJobName}}}, Spec: corev1.PodSpec{Containers: []corev1.Container{{Name: "full-recovery"}}},
}}, }},
} }
jobJSON, _ := json.Marshal(job) jobJSON, _ := json.Marshal(job)

View File

@ -47,8 +47,6 @@ func BuildRole(
} }
// BuildRoleRules builds the RBAC PolicyRules for the given ObjectStores. // BuildRoleRules builds the RBAC PolicyRules for the given ObjectStores.
//
//nolint:goconst
func BuildRoleRules(barmanObjects []barmancloudv1.ObjectStore) []rbacv1.PolicyRule { func BuildRoleRules(barmanObjects []barmancloudv1.ObjectStore) []rbacv1.PolicyRule {
secretsSet := stringset.New() secretsSet := stringset.New()
barmanObjectsSet := stringset.New() barmanObjectsSet := stringset.New()