Skip to content

Commit 1f4ee60

Browse files
authored
fix docker build for UI and bumped some outdated versions in docs and config (#3017)
* fix docker build for UI and bumped some outdated versions in docs and config * update helm chart image again because of wrong format field * switch to new registry ghcr.io for e2e test * update e2e test runner Dockerfile
1 parent c4f10ce commit 1f4ee60

File tree

16 files changed

+41
-53
lines changed

16 files changed

+41
-53
lines changed

charts/postgres-operator/crds/operatorconfigurations.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ spec:
510510
pattern: '^(\d+m|\d+(\.\d{1,3})?)$'
511511
logical_backup_docker_image:
512512
type: string
513-
default: "ghcr.io/zalando/postgres-operator/logical-backup:v1.13.0"
513+
default: "ghcr.io/zalando/postgres-operator/logical-backup:v1.15.1"
514514
logical_backup_google_application_credentials:
515515
type: string
516516
logical_backup_job_prefix:

charts/postgres-operator/crds/postgresqls.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ spec:
278278
items:
279279
type: string
280280
weight:
281-
format: int32
282281
type: integer
283282
requiredDuringSchedulingIgnoredDuringExecution:
284283
type: object

charts/postgres-operator/index.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ entries:
33
postgres-operator:
44
- apiVersion: v2
55
appVersion: 1.15.1
6-
created: "2025-12-11T12:43:37.232803735+01:00"
6+
created: "2025-12-17T14:48:33.832345061+01:00"
77
description: Postgres Operator creates and manages PostgreSQL clusters running
88
in Kubernetes
9-
digest: 64d9c1d7be7e5bc4661099806b77dc509cb547938c2de6c7105f9665e9ee0aab
9+
digest: 9f3edc3d796105c02c04eaae28a78e58fb08c1847a9de012245fd6ac2c0d2c00
1010
home: https://github.com/zalando/postgres-operator
1111
keywords:
1212
- postgres
@@ -25,7 +25,7 @@ entries:
2525
version: 1.15.1
2626
- apiVersion: v2
2727
appVersion: 1.15.0
28-
created: "2025-12-11T12:43:37.226030229+01:00"
28+
created: "2025-12-17T14:48:33.826117296+01:00"
2929
description: Postgres Operator creates and manages PostgreSQL clusters running
3030
in Kubernetes
3131
digest: 002dd47647bf51fbba023bd1762d807be478cf37de7a44b80cd01ac1f20bd94a
@@ -47,7 +47,7 @@ entries:
4747
version: 1.15.0
4848
- apiVersion: v2
4949
appVersion: 1.14.0
50-
created: "2025-12-11T12:43:37.217094172+01:00"
50+
created: "2025-12-17T14:48:33.819729144+01:00"
5151
description: Postgres Operator creates and manages PostgreSQL clusters running
5252
in Kubernetes
5353
digest: 36e1571f3f455b213f16cdda7b1158648e8e84deb804ba47ed6b9b6d19263ba8
@@ -69,7 +69,7 @@ entries:
6969
version: 1.14.0
7070
- apiVersion: v2
7171
appVersion: 1.13.0
72-
created: "2025-12-11T12:43:37.211148314+01:00"
72+
created: "2025-12-17T14:48:33.81038602+01:00"
7373
description: Postgres Operator creates and manages PostgreSQL clusters running
7474
in Kubernetes
7575
digest: a839601689aea0a7e6bc0712a5244d435683cf3314c95794097ff08540e1dfef
@@ -91,7 +91,7 @@ entries:
9191
version: 1.13.0
9292
- apiVersion: v2
9393
appVersion: 1.12.2
94-
created: "2025-12-11T12:43:37.202520969+01:00"
94+
created: "2025-12-17T14:48:33.803256825+01:00"
9595
description: Postgres Operator creates and manages PostgreSQL clusters running
9696
in Kubernetes
9797
digest: 65858d14a40d7fd90c32bd9fc60021acc9555c161079f43a365c70171eaf21d8
@@ -113,7 +113,7 @@ entries:
113113
version: 1.12.2
114114
- apiVersion: v2
115115
appVersion: 1.11.0
116-
created: "2025-12-11T12:43:37.197036041+01:00"
116+
created: "2025-12-17T14:48:33.797369053+01:00"
117117
description: Postgres Operator creates and manages PostgreSQL clusters running
118118
in Kubernetes
119119
digest: 3914b5e117bda0834f05c9207f007e2ac372864cf6e86dcc2e1362bbe46c14d9
@@ -135,7 +135,7 @@ entries:
135135
version: 1.11.0
136136
- apiVersion: v2
137137
appVersion: 1.10.1
138-
created: "2025-12-11T12:43:37.191421669+01:00"
138+
created: "2025-12-17T14:48:33.791368349+01:00"
139139
description: Postgres Operator creates and manages PostgreSQL clusters running
140140
in Kubernetes
141141
digest: cc3baa41753da92466223d0b334df27e79c882296577b404a8e9071411fcf19c
@@ -155,4 +155,4 @@ entries:
155155
urls:
156156
- postgres-operator-1.10.1.tgz
157157
version: 1.10.1
158-
generated: "2025-12-11T12:43:37.184779748+01:00"
158+
generated: "2025-12-17T14:48:33.785159183+01:00"
66 Bytes
Binary file not shown.

docs/administrator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,7 @@ make docker
14981498
14991499
# build in image in minikube docker env
15001500
eval $(minikube docker-env)
1501-
docker build -t ghcr.io/zalando/postgres-operator-ui:v1.13.0 .
1501+
docker build -t ghcr.io/zalando/postgres-operator-ui:v1.15.1 .
15021502
15031503
# apply UI manifests next to a running Postgres Operator
15041504
kubectl apply -f manifests/

docs/developer.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Build the operator with the `make docker` command. You may define the TAG
4343
variable to assign an explicit tag to your Docker image and the IMAGE to set
4444
the image name. By default, the tag is computed with
4545
`git describe --tags --always --dirty` and the image is
46-
`registry.opensource.zalan.do/acid/postgres-operator`
46+
`ghcr.io/zalando/postgres-operator`
4747

4848
```bash
4949
export TAG=$(git describe --tags --always --dirty)
@@ -72,7 +72,7 @@ make docker
7272

7373
# kind
7474
make docker
75-
kind load docker-image registry.opensource.zalan.do/acid/postgres-operator:${TAG} --name <kind-cluster-name>
75+
kind load docker-image ghcr.io/zalando/postgres-operator:${TAG} --name <kind-cluster-name>
7676
```
7777

7878
Then create a new Postgres Operator deployment.
@@ -276,10 +276,10 @@ Examples for fake K8s objects can be found in:
276276

277277
The operator provides reference end-to-end (e2e) tests to
278278
ensure various infrastructure parts work smoothly together. The test code is available at `e2e/tests`.
279-
The special `registry.opensource.zalan.do/acid/postgres-operator-e2e-tests-runner` image is used to run the tests. The container mounts the local `e2e/tests` directory at runtime, so whatever you modify in your local copy of the tests will be executed by a test runner. By maintaining a separate test runner image we avoid the need to re-build the e2e test image on every build.
279+
The special `ghcr.io/zalando/postgres-operator-e2e-tests-runner` image is used to run the tests. The container mounts the local `e2e/tests` directory at runtime, so whatever you modify in your local copy of the tests will be executed by a test runner. By maintaining a separate test runner image we avoid the need to re-build the e2e test image on every build.
280280

281-
Each e2e execution tests a Postgres Operator image built from the current git branch. The test
282-
runner creates a new local K8s cluster using [kind](https://kind.sigs.k8s.io/),
281+
Each e2e execution tests a Postgres Operator image built from the current git branch.
282+
The test runner creates a new local K8s cluster using [kind](https://kind.sigs.k8s.io/),
283283
utilizes provided manifest examples, and runs e2e tests contained in the `tests`
284284
folder. The K8s API client in the container connects to the `kind` cluster via
285285
the standard Docker `bridge` network. The kind cluster is deleted if tests

docs/reference/operator_parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ grouped under the `logical_backup` key.
824824
runs `pg_dumpall` on a replica if possible and uploads compressed results to
825825
an S3 bucket under the key `/<configured-s3-bucket-prefix>/<pg_cluster_name>/<cluster_k8s_uuid>/logical_backups`.
826826
The default image is the same image built with the Zalando-internal CI
827-
pipeline. Default: "ghcr.io/zalando/postgres-operator/logical-backup:v1.13.0"
827+
pipeline. Default: "ghcr.io/zalando/postgres-operator/logical-backup:v1.15.1"
828828

829829
* **logical_backup_google_application_credentials**
830830
Specifies the path of the google cloud service account json file. Default is empty.

e2e/Dockerfile

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,20 @@
11
# An image to run e2e tests.
22
# The image does not include the tests; all necessary files are bind-mounted when a container starts.
3-
FROM ubuntu:20.04
3+
FROM python:3.11-slim
44
LABEL maintainer="Team ACID @ Zalando <[email protected]>"
55

66
ENV TERM xterm-256color
77

8-
COPY requirements.txt ./
9-
10-
RUN apt-get update \
11-
&& apt-get install --no-install-recommends -y \
12-
python3 \
13-
python3-setuptools \
14-
python3-pip \
15-
curl \
16-
vim \
17-
&& pip3 install --no-cache-dir -r requirements.txt \
8+
RUN apt-get -qq -y update \
9+
# https://www.psycopg.org/docs/install.html#psycopg-vs-psycopg-binary
10+
&& apt-get -qq -y install --no-install-recommends curl vim python3-dev \
1811
&& curl -LO https://dl.k8s.io/release/v1.32.9/bin/linux/amd64/kubectl \
1912
&& chmod +x ./kubectl \
2013
&& mv ./kubectl /usr/local/bin/kubectl \
21-
&& apt-get clean \
14+
&& apt-get -qq -y clean \
2215
&& rm -rf /var/lib/apt/lists/*
2316

24-
# working line
25-
# python3 -m unittest discover -v --failfast -k test_e2e.EndToEndTestCase.test_lazy_spilo_upgrade --start-directory tests
26-
ENTRYPOINT ["python3", "-m", "unittest"]
27-
CMD ["discover","-v","--failfast","--start-directory","/tests"]
17+
COPY requirements.txt ./
18+
RUN pip install -r ./requirements.txt
19+
20+
CMD ["python", "-m", "unittest", "discover", "-v", "--failfast", "--start-directory", "/tests"]

e2e/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ endif
1111
LOCAL_BUILD_FLAGS ?= $(BUILD_FLAGS)
1212
LDFLAGS ?= -X=main.version=$(VERSION)
1313

14-
IMAGE ?= registry.opensource.zalan.do/acid/$(BINARY)
14+
IMAGE ?= ghcr.io/zalando/$(BINARY)
1515
VERSION ?= $(shell git describe --tags --always --dirty)
1616
TAG ?= $(VERSION)
1717
GITHEAD = $(shell git rev-parse --short HEAD)
@@ -46,7 +46,7 @@ tools:
4646
# install pinned version of 'kind'
4747
# go install must run outside of a dir with a (module-based) Go project !
4848
# otherwise go install updates project's dependencies and/or behaves differently
49-
cd "/tmp" && GO111MODULE=on go install sigs.k8s.io/kind@v0.24.0
49+
cd "/tmp" && GO111MODULE=on go install sigs.k8s.io/kind@v0.27.0
5050

5151
e2etest: tools copy clean
5252
./run.sh main

e2e/exec_into_env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
export cluster_name="postgres-operator-e2e-tests"
44
export kubeconfig_path="/tmp/kind-config-${cluster_name}"
5-
export operator_image="registry.opensource.zalan.do/acid/postgres-operator:latest"
6-
export e2e_test_runner_image="registry.opensource.zalan.do/acid/postgres-operator-e2e-tests-runner:0.4"
5+
export operator_image="ghcr.io/zalando/postgres-operator:latest"
6+
export e2e_test_runner_image="ghcr.io/zalando/postgres-operator-e2e-tests-runner:latest"
77

88
docker run -it --entrypoint /bin/bash --network=host -e "TERM=xterm-256color" \
99
--mount type=bind,source="$(readlink -f ${kubeconfig_path})",target=/root/.kube/config \

0 commit comments

Comments
 (0)