mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-03-10 12:42:20 +01:00
Compare commits
1 Commits
557b261b25
...
4f2e4fac48
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f2e4fac48 |
2
.github/workflows/barman-base-image.yml
vendored
2
.github/workflows/barman-base-image.yml
vendored
@ -27,7 +27,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.19.10
|
DAGGER_VERSION: 0.19.9
|
||||||
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: Publish a barman-base
|
- name: Publish a barman-base
|
||||||
|
|||||||
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -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.19.10
|
DAGGER_VERSION: 0.19.9
|
||||||
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
|
||||||
|
|||||||
2
.github/workflows/release-please.yml
vendored
2
.github/workflows/release-please.yml
vendored
@ -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.19.10
|
DAGGER_VERSION: 0.19.9
|
||||||
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
|
||||||
|
|||||||
2
.github/workflows/release-publish.yml
vendored
2
.github/workflows/release-publish.yml
vendored
@ -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.19.10
|
DAGGER_VERSION: 0.19.9
|
||||||
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
|
||||||
|
|||||||
10
Taskfile.yml
10
Taskfile.yml
@ -21,7 +21,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: 5dcc7e4c4cd5ed230046955f42e27f2166545155
|
DAGGER_GOLANGCI_LINT_SHA: 5dcc7e4c4cd5ed230046955f42e27f2166545155
|
||||||
# renovate: datasource=docker depName=golangci/golangci-lint versioning=semver
|
# renovate: datasource=docker depName=golangci/golangci-lint versioning=semver
|
||||||
GOLANGCI_LINT_VERSION: v2.8.0
|
GOLANGCI_LINT_VERSION: v2.7.2
|
||||||
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}
|
||||||
@ -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.6
|
GOLANG_IMAGE_VERSION: 1.25.5
|
||||||
# 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
|
||||||
@ -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.19.10
|
DAGGER_VERSION: 0.19.9
|
||||||
DAGGER_ENGINE_IMAGE: registry.dagger.io/engine:v{{ .DAGGER_VERSION }}
|
DAGGER_ENGINE_IMAGE: registry.dagger.io/engine:v{{ .DAGGER_VERSION }}
|
||||||
cmds:
|
cmds:
|
||||||
- >
|
- >
|
||||||
@ -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.6
|
GOLANG_IMAGE_VERSION: 1.25.5
|
||||||
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.6
|
GOLANG_IMAGE_VERSION: 1.25.5
|
||||||
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.6 AS gobuilder
|
FROM --platform=$BUILDPLATFORM golang:1.25.5 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.6 AS gobuilder
|
FROM --platform=$BUILDPLATFORM golang:1.25.5 AS gobuilder
|
||||||
ARG TARGETOS
|
ARG TARGETOS
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache
|
|||||||
# Use plugin-barman-cloud-base to get the dependencies.
|
# Use plugin-barman-cloud-base to get the dependencies.
|
||||||
# pip will build everything inside /usr, so we copy every file into a new
|
# pip will build everything inside /usr, so we copy every file into a new
|
||||||
# destination that will then be copied into the distroless container
|
# destination that will then be copied into the distroless container
|
||||||
FROM ghcr.io/cloudnative-pg/plugin-barman-cloud-base:3.17.0-202601131704 AS pythonbuilder
|
FROM ghcr.io/cloudnative-pg/plugin-barman-cloud-base:3.16.2-202512221525 AS pythonbuilder
|
||||||
# Prepare a new /usr/ directory with the files we'll need in the final image
|
# Prepare a new /usr/ directory with the files we'll need in the final image
|
||||||
RUN mkdir /new-usr/ && \
|
RUN mkdir /new-usr/ && \
|
||||||
cp -r --parents /usr/local/lib/ /usr/lib/*-linux-gnu/ /usr/local/bin/ \
|
cp -r --parents /usr/local/lib/ /usr/lib/*-linux-gnu/ /usr/local/bin/ \
|
||||||
|
|||||||
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.6
|
toolchain go1.25.5
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/cert-manager/cert-manager v1.19.2
|
github.com/cert-manager/cert-manager v1.19.2
|
||||||
|
|||||||
@ -353,31 +353,30 @@ func reconcilePodSpec(
|
|||||||
sidecarTemplate corev1.Container,
|
sidecarTemplate corev1.Container,
|
||||||
config sidecarConfiguration,
|
config sidecarConfiguration,
|
||||||
) error {
|
) error {
|
||||||
envs := make([]corev1.EnvVar, 0, 5+len(config.env))
|
envs := []corev1.EnvVar{
|
||||||
envs = append(envs,
|
{
|
||||||
corev1.EnvVar{
|
|
||||||
Name: "NAMESPACE",
|
Name: "NAMESPACE",
|
||||||
Value: cluster.Namespace,
|
Value: cluster.Namespace,
|
||||||
},
|
},
|
||||||
corev1.EnvVar{
|
{
|
||||||
Name: "CLUSTER_NAME",
|
Name: "CLUSTER_NAME",
|
||||||
Value: cluster.Name,
|
Value: cluster.Name,
|
||||||
},
|
},
|
||||||
corev1.EnvVar{
|
{
|
||||||
// TODO: should we really use this one?
|
// TODO: should we really use this one?
|
||||||
// should we mount an emptyDir volume just for that?
|
// should we mount an emptyDir volume just for that?
|
||||||
Name: "SPOOL_DIRECTORY",
|
Name: "SPOOL_DIRECTORY",
|
||||||
Value: "/controller/wal-restore-spool",
|
Value: "/controller/wal-restore-spool",
|
||||||
},
|
},
|
||||||
corev1.EnvVar{
|
{
|
||||||
Name: "CUSTOM_CNPG_GROUP",
|
Name: "CUSTOM_CNPG_GROUP",
|
||||||
Value: cluster.GetObjectKind().GroupVersionKind().Group,
|
Value: cluster.GetObjectKind().GroupVersionKind().Group,
|
||||||
},
|
},
|
||||||
corev1.EnvVar{
|
{
|
||||||
Name: "CUSTOM_CNPG_VERSION",
|
Name: "CUSTOM_CNPG_VERSION",
|
||||||
Value: cluster.GetObjectKind().GroupVersionKind().Version,
|
Value: cluster.GetObjectKind().GroupVersionKind().Version,
|
||||||
},
|
},
|
||||||
)
|
}
|
||||||
|
|
||||||
envs = append(envs, config.env...)
|
envs = append(envs, config.env...)
|
||||||
|
|
||||||
|
|||||||
@ -206,7 +206,7 @@ When a backup fails, follow these steps in order:
|
|||||||
plugins:
|
plugins:
|
||||||
- name: barman-cloud.cloudnative-pg.io
|
- name: barman-cloud.cloudnative-pg.io
|
||||||
parameters:
|
parameters:
|
||||||
barmanObjectName: <your-objectstore-name>
|
barmanObjectStore: <your-objectstore-name>
|
||||||
```
|
```
|
||||||
|
|
||||||
c. **Check plugin deployment is running**:
|
c. **Check plugin deployment is running**:
|
||||||
|
|||||||
@ -206,7 +206,7 @@ When a backup fails, follow these steps in order:
|
|||||||
plugins:
|
plugins:
|
||||||
- name: barman-cloud.cloudnative-pg.io
|
- name: barman-cloud.cloudnative-pg.io
|
||||||
parameters:
|
parameters:
|
||||||
barmanObjectName: <your-objectstore-name>
|
barmanObjectStore: <your-objectstore-name>
|
||||||
```
|
```
|
||||||
|
|
||||||
c. **Check plugin deployment is running**:
|
c. **Check plugin deployment is running**:
|
||||||
|
|||||||
@ -206,7 +206,7 @@ When a backup fails, follow these steps in order:
|
|||||||
plugins:
|
plugins:
|
||||||
- name: barman-cloud.cloudnative-pg.io
|
- name: barman-cloud.cloudnative-pg.io
|
||||||
parameters:
|
parameters:
|
||||||
barmanObjectName: <your-objectstore-name>
|
barmanObjectStore: <your-objectstore-name>
|
||||||
```
|
```
|
||||||
|
|
||||||
c. **Check plugin deployment is running**:
|
c. **Check plugin deployment is running**:
|
||||||
|
|||||||
@ -206,7 +206,7 @@ When a backup fails, follow these steps in order:
|
|||||||
plugins:
|
plugins:
|
||||||
- name: barman-cloud.cloudnative-pg.io
|
- name: barman-cloud.cloudnative-pg.io
|
||||||
parameters:
|
parameters:
|
||||||
barmanObjectName: <your-objectstore-name>
|
barmanObjectStore: <your-objectstore-name>
|
||||||
```
|
```
|
||||||
|
|
||||||
c. **Check plugin deployment is running**:
|
c. **Check plugin deployment is running**:
|
||||||
|
|||||||
@ -206,7 +206,7 @@ When a backup fails, follow these steps in order:
|
|||||||
plugins:
|
plugins:
|
||||||
- name: barman-cloud.cloudnative-pg.io
|
- name: barman-cloud.cloudnative-pg.io
|
||||||
parameters:
|
parameters:
|
||||||
barmanObjectName: <your-objectstore-name>
|
barmanObjectStore: <your-objectstore-name>
|
||||||
```
|
```
|
||||||
|
|
||||||
c. **Check plugin deployment is running**:
|
c. **Check plugin deployment is running**:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user