Skip to content

Commit 391c05c

Browse files
authored
Merge branch 'main' into dependabot/go_modules/sigs.k8s.io/controller-runtime-0.20.4
2 parents f7eda7d + 9d8b028 commit 391c05c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1207
-78
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ uninstall: ## Delete the postgrescluster CRD
120120
deploy: ## Deploy the PostgreSQL Operator (enables the postgrescluster controller)
121121
yq eval '(.spec.template.spec.containers[] | select(.name=="operator")).image = "$(IMAGE)"' ./deploy/operator.yaml \
122122
| yq eval '(.spec.template.spec.containers[] | select(.name=="operator") | .env[] | select(.name=="DISABLE_TELEMETRY") | .value) = "true"' - \
123+
| yq eval '(.spec.template.spec.containers[] | select(.name=="operator") | .env[] | select(.name=="LOG_LEVEL") | .value) = "DEBUG"' - \
123124
| kubectl apply -f -
124125

125126
.PHONY: undeploy

build/crd/crunchy/generated/postgres-operator.crunchydata.com_postgresclusters.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,8 @@ spec:
389389
pgBackRest repository hosts and backups. The image may also be set using
390390
the RELATED_IMAGE_PGBACKREST environment variable
391391
type: string
392+
initImage:
393+
type: string
392394
jobs:
393395
description: Jobs field allows configuration for all backup
394396
jobs
@@ -8402,6 +8404,8 @@ spec:
84028404
type: object
84038405
x-kubernetes-map-type: atomic
84048406
type: array
8407+
initImage:
8408+
type: string
84058409
instances:
84068410
description: |-
84078411
Specifies one or more sets of PostgreSQL pods that replicate data for
@@ -14019,6 +14023,15 @@ spec:
1401914023
type: boolean
1402014024
patroni:
1402114025
properties:
14026+
createReplicaMethods:
14027+
description: CreateReplicaMethods allows overriding create_replica_methods
14028+
for all instances.
14029+
items:
14030+
enum:
14031+
- basebackup
14032+
- pgbackrest
14033+
type: string
14034+
type: array
1402214035
dynamicConfiguration:
1402314036
description: |-
1402414037
Patroni dynamic configuration settings. Changes to this value will be

build/crd/percona/generated/pgv2.percona.com_perconapgclusters.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,8 @@ spec:
545545
pgBackRest repository hosts and backups. The image may also be set using
546546
the RELATED_IMAGE_PGBACKREST environment variable
547547
type: string
548+
initImage:
549+
type: string
548550
jobs:
549551
description: Jobs field allows configuration for all backup
550552
jobs
@@ -8070,6 +8072,8 @@ spec:
80708072
type: boolean
80718073
pg_stat_monitor:
80728074
type: boolean
8075+
pg_stat_statements:
8076+
type: boolean
80738077
pgvector:
80748078
type: boolean
80758079
type: object
@@ -8203,6 +8207,8 @@ spec:
82038207
type: object
82048208
x-kubernetes-map-type: atomic
82058209
type: array
8210+
initImage:
8211+
type: string
82068212
instances:
82078213
description: |-
82088214
Specifies one or more sets of PostgreSQL pods that replicate data for
@@ -13349,6 +13355,15 @@ spec:
1334913355
type: boolean
1335013356
patroni:
1335113357
properties:
13358+
createReplicaMethods:
13359+
description: CreateReplicaMethods allows overriding create_replica_methods
13360+
for all instances.
13361+
items:
13362+
enum:
13363+
- basebackup
13364+
- pgbackrest
13365+
type: string
13366+
type: array
1335213367
dynamicConfiguration:
1335313368
description: |-
1335413369
Patroni dynamic configuration settings. Changes to this value will be

build/postgres-operator/Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ RUN mkdir -p build/_output/bin \
3434
go build -ldflags "-w -s -X main.GitCommit=$GIT_COMMIT -X main.GitBranch=$GIT_BRANCH -X main.BuildTime=$BUILD_TIME" \
3535
-o build/_output/bin/extension-installer \
3636
./cmd/extension-installer \
37+
&& CGO_ENABLED=$PGBACKREST_CGO_ENABLED GOARCH=${TARGETARCH} GOOS=$GOOS GO_LDFLAGS=$GO_LDFLAGS \
38+
go build \
39+
-o build/_output/bin/pgbackrest ./cmd/pgbackrest \
3740
&& cp -r build/_output/bin/postgres-operator /usr/local/bin/postgres-operator \
38-
&& cp -r build/_output/bin/extension-installer /usr/local/bin/extension-installer
41+
&& cp -r build/_output/bin/extension-installer /usr/local/bin/extension-installer \
42+
&& cp -r build/_output/bin/pgbackrest /usr/local/bin/pgbackrest
3943

4044

4145
RUN ./bin/license_aggregator.sh ./cmd/...; \
@@ -55,8 +59,10 @@ COPY licenses /licenses
5559

5660
COPY --from=go_builder /usr/local/bin/postgres-operator /usr/local/bin
5761
COPY --from=go_builder /usr/local/bin/extension-installer /usr/local/bin
62+
COPY --from=go_builder /usr/local/bin/pgbackrest /usr/local/bin/
5863
COPY --from=go_builder /licenses /licenses
5964
COPY build/postgres-operator/install-extensions.sh /usr/local/bin
65+
COPY build/postgres-operator/init-entrypoint.sh /usr/local/bin
6066
COPY hack/tools/queries /opt/crunchy/conf
6167

6268
RUN chgrp -R 0 /opt/crunchy/conf && chmod -R g=u opt/crunchy/conf
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
set -o errexit
4+
set -o xtrace
5+
6+
CRUNCHY_BINDIR="/opt/crunchy"
7+
8+
install -o "$(id -u)" -g "$(id -g)" -m 0755 -D "/usr/local/bin/pgbackrest" "${CRUNCHY_BINDIR}/bin/pgbackrest"

0 commit comments

Comments
 (0)