Skip to content

Commit fb4d2ed

Browse files
authored
Merge branch 'zalando:master' into feat-498-ownerReferences
2 parents 1a91adb + 334ceab commit fb4d2ed

Some content is hidden

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

64 files changed

+942
-786
lines changed

.github/ISSUE_TEMPLATE/postgres-operator-issue-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ assignees: ''
99

1010
Please, answer some short questions which should help us to understand your problem / question better?
1111

12-
- **Which image of the operator are you using?** e.g. registry.opensource.zalan.do/acid/postgres-operator:v1.8.2
12+
- **Which image of the operator are you using?** e.g. registry.opensource.zalan.do/acid/postgres-operator:v1.10.0
1313
- **Where do you run it - cloud or metal? Kubernetes or OpenShift?** [AWS K8s | GCP ... | Bare Metal K8s]
1414
- **Are you running Postgres Operator in production?** [yes | no]
1515
- **Type of issue?** [Bug report, question, feature request, etc.]
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Publish multiarch postgres-operator image on ghcr.io
2+
3+
env:
4+
REGISTRY: ghcr.io
5+
IMAGE_NAME: ${{ github.repository }}
6+
7+
on:
8+
push:
9+
tags:
10+
- '*'
11+
jobs:
12+
publish:
13+
name: Build, test and push image
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
packages: write
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v3
21+
22+
- uses: actions/setup-go@v2
23+
with:
24+
go-version: "^1.19.8"
25+
26+
- name: Run unit tests
27+
run: make deps mocks test
28+
29+
- name: Define image name
30+
id: image
31+
run: |
32+
IMAGE="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_REF/refs\/tags\//}"
33+
echo "NAME=$IMAGE" >> $GITHUB_OUTPUT
34+
35+
- name: Set up QEMU
36+
uses: docker/setup-qemu-action@v2
37+
38+
- name: Set up Docker Buildx
39+
uses: docker/setup-buildx-action@v2
40+
41+
- name: Login to GHCR
42+
uses: docker/login-action@v2
43+
with:
44+
registry: ${{ env.REGISTRY }}
45+
username: ${{ github.actor }}
46+
password: ${{ secrets.GITHUB_TOKEN }}
47+
48+
- name: Build and push multiarch image to ghcr
49+
uses: docker/build-push-action@v3
50+
with:
51+
context: .
52+
file: docker/Dockerfile
53+
push: true
54+
build-args: BASE_IMAGE=alpine:3.15
55+
tags: "${{ steps.image.outputs.NAME }}"
56+
platforms: linux/amd64,linux/arm64

.github/workflows/run_e2e.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@ jobs:
1414
- uses: actions/checkout@v1
1515
- uses: actions/setup-go@v2
1616
with:
17-
go-version: "^1.18.9"
17+
go-version: "^1.19.8"
1818
- name: Make dependencies
1919
run: make deps mocks
2020
- name: Code generation
2121
run: make codegen
22-
- name: Compile
23-
run: make linux
2422
- name: Run unit tests
2523
run: make test
2624
- name: Run end-2-end tests

.github/workflows/run_tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v2
1515
- uses: actions/setup-go@v2
1616
with:
17-
go-version: "^1.18.9"
17+
go-version: "^1.19.8"
1818
- name: Make dependencies
1919
run: make deps mocks
2020
- name: Compile

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ coverage.xml
9595

9696
# e2e tests
9797
e2e/manifests
98+
e2e/tls
9899

99100
# Translations
100101
*.mo

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2022 Zalando SE
3+
Copyright (c) 2023 Zalando SE
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: clean local test linux macos mocks docker push scm-source.json e2e
1+
.PHONY: clean local test linux macos mocks docker push e2e
22

33
BINARY ?= postgres-operator
44
BUILD_FLAGS ?= -v
@@ -48,7 +48,7 @@ SHELL := env PATH=$(PATH) $(SHELL)
4848
default: local
4949

5050
clean:
51-
rm -rf build scm-source.json
51+
rm -rf build
5252

5353
local: ${SOURCES}
5454
hack/verify-codegen.sh
@@ -60,32 +60,25 @@ linux: ${SOURCES}
6060
macos: ${SOURCES}
6161
GOOS=darwin GOARCH=amd64 CGO_ENABLED=${CGO_ENABLED} go build -o build/macos/${BINARY} ${BUILD_FLAGS} -ldflags "$(LDFLAGS)" $^
6262

63-
docker-context: scm-source.json linux
64-
mkdir -p docker/build/
65-
cp build/linux/${BINARY} scm-source.json docker/build/
66-
67-
docker: ${DOCKERDIR}/${DOCKERFILE} docker-context
63+
docker: ${DOCKERDIR}/${DOCKERFILE}
6864
echo `(env)`
6965
echo "Tag ${TAG}"
7066
echo "Version ${VERSION}"
7167
echo "CDP tag ${CDP_TAG}"
7268
echo "git describe $(shell git describe --tags --always --dirty)"
73-
cd "${DOCKERDIR}" && docker build --rm -t "$(IMAGE):$(TAG)$(CDP_TAG)$(DEBUG_FRESH)$(DEBUG_POSTFIX)" -f "${DOCKERFILE}" .
69+
docker build --rm -t "$(IMAGE):$(TAG)$(CDP_TAG)$(DEBUG_FRESH)$(DEBUG_POSTFIX)" -f "${DOCKERDIR}/${DOCKERFILE}" --build-arg VERSION="${VERSION}" .
7470

7571
indocker-race:
76-
docker run --rm -v "${GOPATH}":"${GOPATH}" -e GOPATH="${GOPATH}" -e RACE=1 -w ${PWD} golang:1.18.9 bash -c "make linux"
72+
docker run --rm -v "${GOPATH}":"${GOPATH}" -e GOPATH="${GOPATH}" -e RACE=1 -w ${PWD} golang:1.19.8 bash -c "make linux"
7773

7874
push:
7975
docker push "$(IMAGE):$(TAG)$(CDP_TAG)"
8076

81-
scm-source.json: .git
82-
echo '{\n "url": "git:$(GITURL)",\n "revision": "$(GITHEAD)",\n "author": "$(USER)",\n "status": "$(GITSTATUS)"\n}' > scm-source.json
83-
8477
mocks:
8578
GO111MODULE=on go generate ./...
8679

8780
tools:
88-
GO111MODULE=on go get -d k8s.io/client-go@kubernetes-1.23.5
81+
GO111MODULE=on go get -d k8s.io/client-go@kubernetes-1.25.9
8982
GO111MODULE=on go install github.com/golang/mock/mockgen@v1.6.0
9083
GO111MODULE=on go mod tidy
9184

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,14 @@ pipelines with no access to Kubernetes API directly, promoting infrastructure as
5151
[timescaledb](https://github.com/timescale/timescaledb)
5252

5353
The Postgres Operator has been developed at Zalando and is being used in
54-
production for over three years.
54+
production for over five years.
5555

5656
## Supported Postgres & K8s versions
5757

5858
| Release | Postgres versions | K8s versions | Golang |
5959
| :-------- | :---------------: | :---------------: | :-----: |
60-
| v1.9.* | 10 → 15 | 1.25+ | 1.18.9 |
60+
| v1.10.* | 10 → 15 | 1.25+ | 1.19.8 |
61+
| v1.9.0 | 10 → 15 | 1.25+ | 1.18.9 |
6162
| v1.8.* | 9.5 → 14 | 1.20 → 1.24 | 1.17.4 |
6263
| v1.7.1 | 9.5 → 14 | 1.20 → 1.24 | 1.16.9 |
6364

charts/postgres-operator-ui/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: postgres-operator-ui
3-
version: 1.9.0
4-
appVersion: 1.9.0
3+
version: 1.10.0
4+
appVersion: 1.10.0
55
home: https://github.com/zalando/postgres-operator
66
description: Postgres Operator UI provides a graphical interface for a convenient database-as-a-service user experience
77
keywords:

charts/postgres-operator-ui/index.yaml

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,32 @@
11
apiVersion: v1
22
entries:
33
postgres-operator-ui:
4+
- apiVersion: v2
5+
appVersion: 1.10.0
6+
created: "2023-04-20T17:43:19.406989589+02:00"
7+
description: Postgres Operator UI provides a graphical interface for a convenient
8+
database-as-a-service user experience
9+
digest: 47413650e3188539ae778a601998efa2c4f80b8aa16e3668a2fc7b72e014b605
10+
home: https://github.com/zalando/postgres-operator
11+
keywords:
12+
- postgres
13+
- operator
14+
- ui
15+
- cloud-native
16+
- patroni
17+
- spilo
18+
maintainers:
19+
- email: opensource@zalando.de
20+
name: Zalando
21+
name: postgres-operator-ui
22+
sources:
23+
- https://github.com/zalando/postgres-operator
24+
urls:
25+
- postgres-operator-ui-1.10.0.tgz
26+
version: 1.10.0
427
- apiVersion: v2
528
appVersion: 1.9.0
6-
created: "2023-01-17T15:45:57.564334046+01:00"
29+
created: "2023-04-20T17:43:19.412696022+02:00"
730
description: Postgres Operator UI provides a graphical interface for a convenient
831
database-as-a-service user experience
932
digest: df434af6c8b697fe0631017ecc25e3c79e125361ae6622347cea41a545153bdc
@@ -26,7 +49,7 @@ entries:
2649
version: 1.9.0
2750
- apiVersion: v2
2851
appVersion: 1.8.2
29-
created: "2023-01-17T15:45:57.562574292+01:00"
52+
created: "2023-04-20T17:43:19.412121611+02:00"
3053
description: Postgres Operator UI provides a graphical interface for a convenient
3154
database-as-a-service user experience
3255
digest: fbfc90fa8fd007a08a7c02e0ec9108bb8282cbb42b8c976d88f2193d6edff30c
@@ -49,7 +72,7 @@ entries:
4972
version: 1.8.2
5073
- apiVersion: v2
5174
appVersion: 1.8.1
52-
created: "2023-01-17T15:45:57.561981294+01:00"
75+
created: "2023-04-20T17:43:19.411558436+02:00"
5376
description: Postgres Operator UI provides a graphical interface for a convenient
5477
database-as-a-service user experience
5578
digest: d26342e385ea51a0fbfbe23477999863e9489664ae803ea5c56da8897db84d24
@@ -72,7 +95,7 @@ entries:
7295
version: 1.8.1
7396
- apiVersion: v1
7497
appVersion: 1.8.0
75-
created: "2023-01-17T15:45:57.561383172+01:00"
98+
created: "2023-04-20T17:43:19.41042838+02:00"
7699
description: Postgres Operator UI provides a graphical interface for a convenient
77100
database-as-a-service user experience
78101
digest: d4a7b40c23fd167841cc28342afdbd5ecc809181913a5c31061c83139187f148
@@ -95,7 +118,7 @@ entries:
95118
version: 1.8.0
96119
- apiVersion: v1
97120
appVersion: 1.7.1
98-
created: "2023-01-17T15:45:57.560738084+01:00"
121+
created: "2023-04-20T17:43:19.409317912+02:00"
99122
description: Postgres Operator UI provides a graphical interface for a convenient
100123
database-as-a-service user experience
101124
digest: 97aed1a1d37cd5f8441eea9522f38e56cc829786ad2134c437a5e6a15c995869
@@ -118,7 +141,7 @@ entries:
118141
version: 1.7.1
119142
- apiVersion: v1
120143
appVersion: 1.7.0
121-
created: "2023-01-17T15:45:57.560150807+01:00"
144+
created: "2023-04-20T17:43:19.40859522+02:00"
122145
description: Postgres Operator UI provides a graphical interface for a convenient
123146
database-as-a-service user experience
124147
digest: 37fba1968347daad393dbd1c6ee6e5b6a24d1095f972c0102197531c62dcada8
@@ -139,4 +162,4 @@ entries:
139162
urls:
140163
- postgres-operator-ui-1.7.0.tgz
141164
version: 1.7.0
142-
generated: "2023-01-17T15:45:57.558968127+01:00"
165+
generated: "2023-04-20T17:43:19.40598429+02:00"

0 commit comments

Comments
 (0)