Skip to content

Commit acef3d2

Browse files
authored
Add multisite feature to operator
2 parents 24a326c + 5f10037 commit acef3d2

Some content is hidden

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

52 files changed

+1516
-241
lines changed

LICENSE

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

33
Copyright (c) 2023 Zalando SE
4+
2024 CYBERTEC PostgreSQL International GmbH
45

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

MAINTAINERS

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
Sergey Dudoladov <[email protected]>
2-
Felix Kunde <[email protected]>
3-
Jan Mussler <[email protected]>
4-
Jociele Padilha <[email protected]>
5-
Ida Novindasari <[email protected]>
6-
Polina Bungina <[email protected]>
1+
Matthias Grömmer <[email protected]>
2+
Ants Aasma <[email protected]>
3+
Rafia Sabih <[email protected]>

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ The Operator project is being driven forward by CYBERTEC and is currently in pro
5656

5757
| Release | Postgres versions | pgBackRest versions | Patroni versions | K8s versions | Golang |
5858
| :-------- | :---------------: | :-------------------: | :--------------: | :----------------:| :-----: |
59-
| 0.7.0 | 12 &rarr; 16 | 2.52.1 | 3.3.1 | 1.21+ | 1.21.7 |
60-
| next rc | 13 &rarr; 16 | 2.51 | 3.3.1 | 1.21+ | 1.21.7 |
59+
| 0.8.0 | 13 &rarr; 17 | 2.53 | 4.0.2 | 1.21+ | 1.21.7 |
6160

6261
## Getting started
6362

@@ -73,4 +72,4 @@ There is a browser-friendly version of this documentation at
7372

7473
## Community
7574

76-
Coming soon
75+
Coming soon

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Security
22

3-
If you have discovered a security vulnerability, please email tech-security@zalando.de.
3+
If you have discovered a security vulnerability, please email security@cybertec.at.

charts/postgres-cluster/.helmignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/

charts/postgres-cluster/Chart.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: v2
2+
name: postgres-cluster
3+
description: Deploys a PostgreSQL cluster using the PostgreSQL operator
4+
5+
type: application
6+
version: 0.8.0
7+
8+
appVersion: "0.8.0-1"
9+
10+
maintainers:
11+
- name: CYBERTEC PostgreSQL International GmbH
12+
13+
14+
sources:
15+
- https://github.com/cybertec-postgresql/cybertec-pg-operator
16+
17+
engine: gotpl

charts/postgres-cluster/index.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: v1
2+
entries:
3+
postgres-cluster:
4+
- apiVersion: v2
5+
appVersion: 0.8.0-1
6+
created: "2024-10-14T00:52:56.851410174+03:00"
7+
description: Deploys a PostgreSQL cluster using the PostgreSQL operator
8+
digest: f275636dc39a2db215633cc3d7449e86fd18d1cc29aed7f06af5006137bebad5
9+
maintainers:
10+
11+
name: CYBERTEC PostgreSQL International GmbH
12+
name: postgres-cluster
13+
sources:
14+
- https://github.com/cybertec-postgresql/cybertec-pg-operator
15+
type: application
16+
urls:
17+
- postgres-cluster-0.8.0.tgz
18+
version: 0.8.0
19+
generated: "2024-10-14T00:52:56.850805082+03:00"
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Database cluster object has been created and the operator should start initializing it now.
2+
3+
To wait for the initialization to complete you can issue the following command:
4+
5+
kubectl wait --for=jsonpath='.status.PostgresClusterStatus'=Running -n {{ .Release.Namespace }} pg/{{ .Release.Name }} --timeout=1h
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{{/*
2+
Expand the name of the chart.
3+
*/}}
4+
{{- define "postgres-cluster.name" -}}
5+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
6+
{{- end }}
7+
8+
{{/*
9+
Create a default fully qualified app name.
10+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
11+
If release name contains chart name it will be used as a full name.
12+
*/}}
13+
{{- define "postgres-cluster.fullname" -}}
14+
{{- if .Values.fullnameOverride }}
15+
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
16+
{{- else }}
17+
{{- $name := default .Chart.Name .Values.nameOverride }}
18+
{{- if contains $name .Release.Name }}
19+
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
20+
{{- else }}
21+
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
22+
{{- end }}
23+
{{- end }}
24+
{{- end }}
25+
26+
{{/*
27+
Create chart name and version as used by the chart label.
28+
*/}}
29+
{{- define "postgres-cluster.chart" -}}
30+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
31+
{{- end }}
32+
33+
{{/*
34+
Common labels
35+
*/}}
36+
{{- define "postgres-cluster.labels" -}}
37+
helm.sh/chart: {{ include "postgres-cluster.chart" . }}
38+
{{- if .Chart.AppVersion }}
39+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
40+
{{- end }}
41+
app.kubernetes.io/managed-by: {{ .Release.Service }}
42+
{{- end }}
43+
44+
{{/*
45+
Selector labels
46+
*/}}
47+
{{- define "postgres-cluster.selectorLabels" -}}
48+
app.kubernetes.io/name: {{ include "postgres-cluster.name" . }}
49+
app.kubernetes.io/instance: {{ .Release.Name }}
50+
{{- end }}

0 commit comments

Comments
 (0)