Skip to content

Commit f842529

Browse files
authored
Merge pull request #1 from zalando/master
update to latest
2 parents 6869c2c + 692c721 commit f842529

Some content is hidden

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

69 files changed

+2870
-676
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Postgres Operator issue template
3+
about: How are you using the operator?
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
Please, answer some short questions which should help us to understand your problem / question better?
11+
12+
- **Which image of the operator are you using?** e.g. registry.opensource.zalan.do/acid/postgres-operator:v1.5.0
13+
- **Where do you run it - cloud or metal? Kubernetes or OpenShift?** [AWS K8s | GCP ... | Bare Metal K8s]
14+
- **Are you running Postgres Operator in production?** [yes | no]
15+
- **Type of issue?** [Bug report, question, feature request, etc.]
16+
17+
Some general remarks when posting a bug report:
18+
- Please, check the operator, pod (Patroni) and postgresql logs first. When copy-pasting many log lines please do it in a separate GitHub gist together with your Postgres CRD and configuration manifest.
19+
- If you feel this issue might be more related to the [Spilo](https://github.com/zalando/spilo/issues) docker image or [Patroni](https://github.com/zalando/patroni/issues), consider opening issues in the respective repos.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ _testmain.go
3030
/docker/build/
3131
/github.com/
3232
.idea
33+
.vscode
3334

3435
scm-source.json
3536

@@ -47,6 +48,8 @@ __pycache__/
4748

4849
# Distribution / packaging
4950
.Python
51+
ui/app/node_modules
52+
ui/operator_ui/static/build
5053
build/
5154
develop-eggs/
5255
dist/

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ install:
1818

1919
script:
2020
- hack/verify-codegen.sh
21-
- travis_wait 20 goveralls -service=travis-ci -package ./pkg/... -v
21+
- travis_wait 20 go test -race -covermode atomic -coverprofile=profile.cov ./pkg/... -v
22+
- goveralls -coverprofile=profile.cov -service=travis-ci -v
2223
- make e2e

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ scm-source.json: .git
7979

8080
tools:
8181
GO111MODULE=on go get -u honnef.co/go/tools/cmd/staticcheck
82-
GO111MODULE=on go get k8s.io/client-go@kubernetes-1.16.3
82+
GO111MODULE=on go get k8s.io/client-go@kubernetes-1.18.8
8383
GO111MODULE=on go mod tidy
8484

8585
fmt:
@@ -97,4 +97,4 @@ test:
9797
GO111MODULE=on go test ./...
9898

9999
e2e: docker # build operator image to be tested
100-
cd e2e; make tools e2etest clean
100+
cd e2e; make e2etest

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,6 @@ There is a browser-friendly version of this documentation at
7676
* [Postgres manifest reference](docs/reference/cluster_manifest.md)
7777
* [Command-line options and environment variables](docs/reference/command_line_and_environment.md)
7878

79-
## Google Summer of Code
80-
81-
The Postgres Operator made it to the [Google Summer of Code 2019](https://summerofcode.withgoogle.com/organizations/5429926902104064/)!
82-
Check [our ideas](docs/gsoc-2019/ideas.md#google-summer-of-code-2019)
83-
and start discussions in [the issue tracker](https://github.com/zalando/postgres-operator/issues).
84-
8579
## Community
8680

8781
There are two places to get in touch with the community:

charts/postgres-operator-ui/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ spec:
4646
- name: "RESOURCES_VISIBLE"
4747
value: "{{ .Values.envs.resourcesVisible }}"
4848
- name: "TARGET_NAMESPACE"
49-
value: {{ .Values.envs.targetNamespace }}
49+
value: "{{ .Values.envs.targetNamespace }}"
5050
- name: "TEAMS"
5151
value: |-
5252
[

charts/postgres-operator/crds/operatorconfigurations.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ spec:
117117
type: object
118118
additionalProperties:
119119
type: string
120+
delete_annotation_date_key:
121+
type: string
122+
delete_annotation_name_key:
123+
type: string
120124
downscaler_annotations:
121125
type: array
122126
items:
@@ -131,6 +135,32 @@ spec:
131135
type: boolean
132136
infrastructure_roles_secret_name:
133137
type: string
138+
infrastructure_roles_secrets:
139+
type: array
140+
nullable: true
141+
items:
142+
type: object
143+
required:
144+
- secretname
145+
- userkey
146+
- passwordkey
147+
properties:
148+
secretname:
149+
type: string
150+
userkey:
151+
type: string
152+
passwordkey:
153+
type: string
154+
rolekey:
155+
type: string
156+
defaultuservalue:
157+
type: string
158+
defaultrolevalue:
159+
type: string
160+
details:
161+
type: string
162+
template:
163+
type: boolean
134164
inherited_labels:
135165
type: array
136166
items:
@@ -149,6 +179,8 @@ spec:
149179
type: string
150180
pod_environment_configmap:
151181
type: string
182+
pod_environment_secret:
183+
type: string
152184
pod_management_policy:
153185
type: string
154186
enum:
@@ -168,6 +200,10 @@ spec:
168200
type: string
169201
secret_name_template:
170202
type: string
203+
spilo_runasuser:
204+
type: integer
205+
spilo_runasgroup:
206+
type: integer
171207
spilo_fsgroup:
172208
type: integer
173209
spilo_privileged:
@@ -227,6 +263,11 @@ spec:
227263
type: boolean
228264
enable_replica_load_balancer:
229265
type: boolean
266+
external_traffic_policy:
267+
type: string
268+
enum:
269+
- "Cluster"
270+
- "Local"
230271
master_dns_name_format:
231272
type: string
232273
replica_dns_name_format:

charts/postgres-operator/crds/postgresqls.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,10 @@ spec:
374374
items:
375375
type: object
376376
additionalProperties: true
377+
spiloRunAsUser:
378+
type: integer
379+
spiloRunAsGroup:
380+
type: integer
377381
spiloFSGroup:
378382
type: integer
379383
standby:

charts/postgres-operator/templates/configmap.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ metadata:
99
app.kubernetes.io/managed-by: {{ .Release.Service }}
1010
app.kubernetes.io/instance: {{ .Release.Name }}
1111
data:
12+
{{- if .Values.podPriorityClassName }}
13+
pod_priority_class_name: {{ .Values.podPriorityClassName }}
14+
{{- end }}
1215
pod_service_account_name: {{ include "postgres-pod.serviceAccountName" . }}
1316
{{ toYaml .Values.configGeneral | indent 2 }}
1417
{{ toYaml .Values.configUsers | indent 2 }}

charts/postgres-operator/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ spec:
3737
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}"
3838
imagePullPolicy: {{ .Values.image.pullPolicy }}
3939
env:
40+
{{- if .Values.enableJsonLogging }}
41+
- name: ENABLE_JSON_LOGGING
42+
value: "true"
43+
{{- end }}
4044
{{- if eq .Values.configTarget "ConfigMap" }}
4145
- name: CONFIG_MAP_NAME
4246
value: {{ template "postgres-operator.fullname" . }}

0 commit comments

Comments
 (0)