mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-03-10 12:42:20 +01:00
Compare commits
4 Commits
355aa09571
...
2412bc2c92
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2412bc2c92 | ||
|
|
064eac2199 | ||
|
|
2c8d0aa8c4 | ||
|
|
78d02d6803 |
@ -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:
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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
2
go.mod
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user