Compare commits

...

4 Commits

Author SHA1 Message Date
Max Eisner
2412bc2c92
Merge 78d02d6803 into 064eac2199 2026-01-20 18:45:06 +00:00
renovate[bot]
064eac2199
chore(deps): update golang docker tag to v1.25.6 (#734)
Some checks failed
release-please / release-please (push) Failing after 39s
Barman Base Image / build (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-01-18 22:33:55 +01:00
renovate[bot]
2c8d0aa8c4
chore(deps): update dependency go to v1.25.6 (#733)
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-01-18 22:32:51 +01:00
Max Eisner
78d02d6803
docs: add IRSA instructions
Signed-off-by: Max Eisner <4730112+max-ae@users.noreply.github.com>
2025-08-18 13:36:01 +02:00
6 changed files with 23 additions and 6 deletions

View File

@ -129,7 +129,7 @@ tasks:
desc: Run go test desc: Run go test
env: env:
# renovate: datasource=docker depName=golang versioning=semver # renovate: datasource=docker depName=golang versioning=semver
GOLANG_IMAGE_VERSION: 1.25.5 GOLANG_IMAGE_VERSION: 1.25.6
# renovate: datasource=git-refs depname=kubernetes packageName=https://github.com/kubernetes/kubernetes versioning=semver # renovate: datasource=git-refs depname=kubernetes packageName=https://github.com/kubernetes/kubernetes versioning=semver
K8S_VERSION: 1.31.0 K8S_VERSION: 1.31.0
# renovate: datasource=git-refs depName=controller-runtime packageName=https://github.com/kubernetes-sigs/controller-runtime versioning=semver # renovate: datasource=git-refs depName=controller-runtime packageName=https://github.com/kubernetes-sigs/controller-runtime versioning=semver
@ -306,7 +306,7 @@ tasks:
- start-kind-cluster - start-kind-cluster
vars: vars:
# renovate: datasource=docker depName=golang versioning=semver # renovate: datasource=docker depName=golang versioning=semver
GOLANG_IMAGE_VERSION: 1.25.5 GOLANG_IMAGE_VERSION: 1.25.6
KUBECONFIG_PATH: KUBECONFIG_PATH:
sh: mktemp -t kubeconfig-XXXXX sh: mktemp -t kubeconfig-XXXXX
env: env:
@ -325,7 +325,7 @@ tasks:
- build-images - build-images
vars: vars:
# renovate: datasource=docker depName=golang versioning=semver # renovate: datasource=docker depName=golang versioning=semver
GOLANG_IMAGE_VERSION: 1.25.5 GOLANG_IMAGE_VERSION: 1.25.6
env: env:
_EXPERIMENTAL_DAGGER_RUNNER_HOST: docker-container://{{ .DAGGER_ENGINE_CONTAINER_NAME }} _EXPERIMENTAL_DAGGER_RUNNER_HOST: docker-container://{{ .DAGGER_ENGINE_CONTAINER_NAME }}
cmds: cmds:

View File

@ -1,5 +1,5 @@
# Build the manager binary # Build the manager binary
FROM --platform=$BUILDPLATFORM golang:1.25.5 AS gobuilder FROM --platform=$BUILDPLATFORM golang:1.25.6 AS gobuilder
ARG TARGETOS ARG TARGETOS
ARG TARGETARCH ARG TARGETARCH

View File

@ -5,7 +5,7 @@
# Both components are built before going into a distroless container # Both components are built before going into a distroless container
# Build the manager binary # Build the manager binary
FROM --platform=$BUILDPLATFORM golang:1.25.5 AS gobuilder FROM --platform=$BUILDPLATFORM golang:1.25.6 AS gobuilder
ARG TARGETOS ARG TARGETOS
ARG TARGETARCH ARG TARGETARCH

2
go.mod
View File

@ -2,7 +2,7 @@ module github.com/cloudnative-pg/plugin-barman-cloud
go 1.25.0 go 1.25.0
toolchain go1.25.5 toolchain go1.25.6
require ( require (
github.com/cert-manager/cert-manager v1.19.2 github.com/cert-manager/cert-manager v1.19.2

View File

@ -103,6 +103,10 @@ As you can see, the contents of `barmanObjectStore` have been copied directly
under the `configuration` field of the `ObjectStore` resource, using the same under the `configuration` field of the `ObjectStore` resource, using the same
secret references. secret references.
### IAM Role for Service Account (IRSA)
If you use IRSA, you need to configure the `ObjectStore` to utilize the correct role as described in the [`Object Store Reference`](object_stores.md#iam-role-for-service-account-irsa).
## Step 2: Update the `Cluster` for plugin WAL archiving ## Step 2: Update the `Cluster` for plugin WAL archiving
Once the `ObjectStore` resource is in place, update the `Cluster` resource as Once the `ObjectStore` resource is in place, update the `Cluster` resource as

View File

@ -111,6 +111,19 @@ spec:
[...] [...]
``` ```
In addition, configure the `ObjectStore` to inherit permissions from the IAM role referenced in the service account:
```yaml
apiVersion: barmancloud.cnpg.io/v1
kind: ObjectStore
metadata:
[...]
spec:
configuration:
s3Credentials:
inheritFromIAMRole: true
```
### S3 Lifecycle Policy ### S3 Lifecycle Policy
Barman Cloud uploads backup files to S3 but does not modify or delete them afterward. Barman Cloud uploads backup files to S3 but does not modify or delete them afterward.