Compare commits

...

4 Commits

Author SHA1 Message Date
Peggie
dff4ca878e chore(main): release 0.13.0
Signed-off-by: Peggie <info@cloudnative-pg.io>
2026-05-05 15:43:45 +02:00
renovate[bot]
5702a48881
chore(deps): update dependency dagger/dagger to v0.20.7 (#886)
Some checks failed
release-please / release-please (push) Failing after 5s
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [dagger/dagger](https://redirect.github.com/dagger/dagger) | patch |
`0.20.6` → `0.20.7` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the [Dependency
Dashboard](../issues/7) for more information.

---

### Release Notes

<details>
<summary>dagger/dagger (dagger/dagger)</summary>

###
[`v0.20.7`](https://redirect.github.com/dagger/dagger/releases/tag/v0.20.7)

[Compare
Source](https://redirect.github.com/dagger/dagger/compare/v0.20.6...v0.20.7)

#### v0.20.7 - 2026-04-30

##### Fixed

- Fix rare engine hangs when short-lived container processes leave `runc
run` or `runc exec` stuck by
[@&#8203;sipsma](https://redirect.github.com/sipsma) in
[`d2fd6b4`](d2fd6b4d32)
(backported from
[#&#8203;13078](https://redirect.github.com/dagger/dagger/pull/13078))
- Fix toolchain customization defaults so changing a default invalidates
cached omitted-argument calls and returns the new value by
[@&#8203;shykes](https://redirect.github.com/shykes) in
[`dbab536`](dbab53643d)
(backported from
[#&#8203;13047](https://redirect.github.com/dagger/dagger/pull/13047))
- Fix remote modules that install a toolchain from another repo so
`+defaultPath` file inputs resolve from the module selected by `-m`, not
from the toolchain repo or the caller's local workspace by
[@&#8203;tiborvass](https://redirect.github.com/tiborvass) in
[`1c105d4`](1c105d45c5)
- Fix modules that install a toolchain so module code can call installed
toolchain constructors and types from generated SDK bindings again by
[@&#8203;eunomie](https://redirect.github.com/eunomie) in
[`d348571`](d348571d4c)
(backported from
[#&#8203;12991](https://redirect.github.com/dagger/dagger/pull/12991))
- Fix `dagger mcp` so MCP clients and agents can use functions from the
current workspace module again, instead of only generic or core tools by
[@&#8203;shykes](https://redirect.github.com/shykes) in
[`104a5ec`](104a5ec60b)
(backported from
[#&#8203;13030](https://redirect.github.com/dagger/dagger/pull/13030))
- Fix Docker-backed engines in cgroup subgroup environments by ensuring
the engine image includes the init binary it needs to start correctly by
[@&#8203;marcosnils](https://redirect.github.com/marcosnils) in
[`7a5f6e6`](7a5f6e67dc)
(backported from
[#&#8203;12999](https://redirect.github.com/dagger/dagger/pull/12999))
- Fix nested Dagger commands so explicit local `NO_COLOR` settings are
preserved after telemetry initialization, avoiding unexpected ANSI color
codes in parseable logs by
[@&#8203;sipsma](https://redirect.github.com/sipsma) in
[`3dbb010`](3dbb01097c)
(backported from
[#&#8203;13076](https://redirect.github.com/dagger/dagger/pull/13076))
- Fix LLM tool calls for providers such as AWS Bedrock by giving
undocumented module functions a fallback tool description instead of an
empty one by [@&#8203;shykes](https://redirect.github.com/shykes) in
[`4d49e17`](4d49e17ed3)
(backported from
[#&#8203;12857](https://redirect.github.com/dagger/dagger/pull/12857))
- Fix git credential errors so failed credential helper output includes
stderr, making authentication failures easier to diagnose by
[@&#8203;marcosnils](https://redirect.github.com/marcosnils) in
[`588ce15`](588ce15b95)
(backported from
[#&#8203;13048](https://redirect.github.com/dagger/dagger/pull/13048))
- Fix `dagger functions` and `dagger call --help` so constructor
plumbing no longer appears as a confusing extra `with` function by
[@&#8203;eunomie](https://redirect.github.com/eunomie) in
[`c50f40a`](c50f40a593)
(backported from
[#&#8203;13012](https://redirect.github.com/dagger/dagger/pull/13012))
- Dang SDK: fix built-in `sdk: "dang"` modules so calls to Go or
TypeScript dependency modules complete instead of timing out while
loading the dependency runtime by
[@&#8203;shykes](https://redirect.github.com/shykes) in
[`4dba920`](4dba920e06)
(backported from
[#&#8203;12975](https://redirect.github.com/dagger/dagger/pull/12975))
- Elixir SDK: fix `dagger generate elixir-sdk` so users can regenerate
Elixir bindings from the current engine introspection schema by
[@&#8203;wingyplus](https://redirect.github.com/wingyplus) in
[`983d5b0`](983d5b03cb)
(backported from
[#&#8203;12890](https://redirect.github.com/dagger/dagger/pull/12890))
- Python SDK: fix calls so they no longer stall for several seconds with
repeated OpenTelemetry metrics exporter warnings when unsupported
metrics are emitted by
[@&#8203;eunomie](https://redirect.github.com/eunomie) in
[`d7a2709`](d7a2709936)
(backported from
[#&#8203;13013](https://redirect.github.com/dagger/dagger/pull/13013))
- Python SDK: fix redundant image pulls in new modules by aligning the
generated Python version requirement with the default runtime image for
better cache-hit performance by
[@&#8203;eunomie](https://redirect.github.com/eunomie) in
[`ede18a0`](ede18a0f7e)
(backported from
[#&#8203;13027](https://redirect.github.com/dagger/dagger/pull/13027))
- Python SDK: fix terminal cleanup so `dagger.connection()` restores the
cursor and stops the spinner with default logging settings by
[@&#8203;shykes](https://redirect.github.com/shykes) in
[`12e1238`](12e1238e23)
(backported from
[#&#8203;12835](https://redirect.github.com/dagger/dagger/pull/12835))
- Python SDK: fix module discovery so introspection no longer imports
user modules by [@&#8203;eunomie](https://redirect.github.com/eunomie)
in
[`8d5362b`](8d5362bbc3)
(backported from
[#&#8203;11803](https://redirect.github.com/dagger/dagger/pull/11803))

##### Contributors

Special thanks to our external contributor this release!

- [@&#8203;wingyplus](https://redirect.github.com/wingyplus)

##### What to do next?

- Read the [documentation](https://docs.dagger.io)
- Join our [Discord server](https://discord.gg/dagger-io)
- Follow us on [Twitter](https://twitter.com/dagger_io)

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/cloudnative-pg/plugin-barman-cloud).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNTkuMiIsInVwZGF0ZWRJblZlciI6IjQzLjE1OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJhdXRvbWF0ZWQiLCJuby1pc3N1ZSJdfQ==-->

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-05 15:29:02 +02:00
renovate[bot]
e19063d345
chore(deps): update golangci/golangci-lint docker tag to v2.12.1 (#885)
Some checks failed
release-please / release-please (push) Failing after 4s
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-04 16:24:15 +02:00
renovate[bot]
a5717b1658
chore(deps): update golangci/golangci-lint docker tag to v2.12.0 (#881)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[golangci/golangci-lint](https://redirect.github.com/golangci/golangci-lint)
| minor | `v2.11.4` → `v2.12.0` |

---

### Release Notes

<details>
<summary>golangci/golangci-lint (golangci/golangci-lint)</summary>

###
[`v2.12.0`](https://redirect.github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v2120)

[Compare
Source](https://redirect.github.com/golangci/golangci-lint/compare/v2.11.4...v2.12.0)

*Released on 2026-05-01*

1. New linters
- Add `clickhouselint` linter
<https://github.com/ClickHouse/clickhouse-go-linter>
2. Linters new features or changes
- `dupl`: from
[`f665c8d`](https://redirect.github.com/golangci/golangci-lint/commit/f665c8d69b32)
to
[`c99c5cf`](https://redirect.github.com/golangci/golangci-lint/commit/c99c5cf5c202)
(extended detection)
   - `funcorder`: from 0.5.0 to 0.6.0 (new option: `function`)
   - `goconst`: add an option to ignore strings from tests
   - `goconst`: from 1.8.2 to 1.10.0 (extended detection)
- `gomodguard_v2`: from 1.4.1 to 2.1.0 (major version with new
configuration)
- `gosec`: from
[`619ce21`](https://redirect.github.com/golangci/golangci-lint/commit/619ce2117e08)
to 2.26.1 (new checks: `G124`, `G708`, `G709`, `G710`)
   - `govet`: add `inline` analyzer
   - `makezero`: from 2.1.0 to 2.2.1 (support slice type aliases)
   - `paralleltest`: expose `checkcleanup` option
- `sloglint`: from 0.11.1 to 0.12.0 (new options: `allowed-keys`,
`custom-funcs`)
- `wsl_v5`: from 5.6.0 to 5.8.0 (new option: `cuddle-max-statements`;
new checks: `after-decl`, `after-defer`, `after-expr`, `after-go`,
`cuddle-group`)
3. Linters bug fixes
   - `forbidigo`: from 2.3.0 to 2.3.1
   - `godot`: from 1.5.4 to 1.5.6
   - `govet-modernize`: from 0.43.0 to 0.44.0
   - `ireturn`: from 0.4.0 to 0.4.1
- `rowserrcheck`: from 1.1.1 to
[`c5f79b8`](https://redirect.github.com/golangci/golangci-lint/commit/c5f79b8)
4. Misc.
   - Decrease cache entropy
   - Embed the JSON schema in the binary
- Filter env vars when cloning the repository with the `custom` command

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/cloudnative-pg/plugin-barman-cloud).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNTkuMiIsInVwZGF0ZWRJblZlciI6IjQzLjE1OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJhdXRvbWF0ZWQiLCJuby1pc3N1ZSJdfQ==-->

---------

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Leonardo Cecchi <leonardo.cecchi@gmail.com>
2026-05-04 16:01:21 +02:00
10 changed files with 33 additions and 10 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.6 DAGGER_VERSION: 0.20.7
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.6 DAGGER_VERSION: 0.20.7
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.6 DAGGER_VERSION: 0.20.7
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,3 +1,3 @@
{ {
".": "0.12.0" ".": "0.13.0"
} }

View File

@ -1,5 +1,21 @@
# Changelog # Changelog
## [0.13.0](https://github.com/cloudnative-pg/plugin-barman-cloud/compare/v0.12.0...v0.13.0) (2026-05-05)
### Features
* Configure k8s recommended labels on subresources ([#865](https://github.com/cloudnative-pg/plugin-barman-cloud/issues/865)) ([4bbaf18](https://github.com/cloudnative-pg/plugin-barman-cloud/commit/4bbaf18cd30174229d98e23151d2d257c90b561a)), closes [#545](https://github.com/cloudnative-pg/plugin-barman-cloud/issues/545)
### Bug Fixes
* Add lz4 compression support for base backups ([#868](https://github.com/cloudnative-pg/plugin-barman-cloud/issues/868)) ([e30154b](https://github.com/cloudnative-pg/plugin-barman-cloud/commit/e30154b938b053f688b5ab520000233e164df6b6)), closes [#867](https://github.com/cloudnative-pg/plugin-barman-cloud/issues/867)
* **deps:** Update all non-major go dependencies ([#877](https://github.com/cloudnative-pg/plugin-barman-cloud/issues/877)) ([a81f6e3](https://github.com/cloudnative-pg/plugin-barman-cloud/commit/a81f6e3d73ee348df22439f2daf062f4be598910))
* **deps:** Update kubernetes monorepo to v0.35.4 ([#853](https://github.com/cloudnative-pg/plugin-barman-cloud/issues/853)) ([21f811a](https://github.com/cloudnative-pg/plugin-barman-cloud/commit/21f811a3f22b8f87ca9230a131f57f832c086fcf))
* **deps:** Update module github.com/onsi/ginkgo/v2 to v2.28.2 ([#874](https://github.com/cloudnative-pg/plugin-barman-cloud/issues/874)) ([8cb32e5](https://github.com/cloudnative-pg/plugin-barman-cloud/commit/8cb32e5a5153347a6b05bf63816bcbc9d94f4d67))
* **deps:** Update module google.golang.org/grpc to v1.81.0 ([#884](https://github.com/cloudnative-pg/plugin-barman-cloud/issues/884)) ([6fdecfd](https://github.com/cloudnative-pg/plugin-barman-cloud/commit/6fdecfde21b7a5cd05bc3f53895243fbf8537770))
## [0.12.0](https://github.com/cloudnative-pg/plugin-barman-cloud/compare/v0.11.0...v0.12.0) (2026-04-13) ## [0.12.0](https://github.com/cloudnative-pg/plugin-barman-cloud/compare/v0.11.0...v0.12.0) (2026-04-13)

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.11.4 GOLANGCI_LINT_VERSION: v2.12.1
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.6 DAGGER_VERSION: 0.20.7
DAGGER_ENGINE_IMAGE: registry.dagger.io/engine:v{{ .DAGGER_VERSION }} DAGGER_ENGINE_IMAGE: registry.dagger.io/engine:v{{ .DAGGER_VERSION }}
cmds: cmds:
- > - >

View File

@ -63,7 +63,7 @@ const (
// Data is the metadata of this plugin. // Data is the metadata of this plugin.
var Data = identity.GetPluginMetadataResponse{ var Data = identity.GetPluginMetadataResponse{
Name: PluginName, Name: PluginName,
Version: "0.12.0", // x-release-please-version Version: "0.13.0", // x-release-please-version
DisplayName: "BarmanCloudInstance", DisplayName: "BarmanCloudInstance",
ProjectUrl: "https://github.com/cloudnative-pg/plugin-barman-cloud", ProjectUrl: "https://github.com/cloudnative-pg/plugin-barman-cloud",
RepositoryUrl: "https://github.com/cloudnative-pg/plugin-barman-cloud", RepositoryUrl: "https://github.com/cloudnative-pg/plugin-barman-cloud",

View File

@ -41,6 +41,9 @@ 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
@ -48,6 +51,8 @@ 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,
@ -186,7 +191,7 @@ func reconcileJob(
contextLogger.Debug("starting job reconciliation") contextLogger.Debug("starting job reconciliation")
jobRole := getCNPGJobRole(&job) jobRole := getCNPGJobRole(&job)
if jobRole != "full-recovery" && if jobRole != fullRecoveryJobName &&
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: "full-recovery", utils.JobRoleLabelName: fullRecoveryJobName,
}, },
}, },
Spec: corev1.PodSpec{Containers: []corev1.Container{{Name: "full-recovery"}}}, Spec: corev1.PodSpec{Containers: []corev1.Container{{Name: fullRecoveryJobName}}},
}}, }},
} }
jobJSON, _ := json.Marshal(job) jobJSON, _ := json.Marshal(job)

View File

@ -47,6 +47,8 @@ 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()