Skip to content

Commit 62bde6f

Browse files
authored
fix env var in UI chart (zalando#967)
* fix env var in UI chart * re-include 1.4.0 in helm chart index * fix import in UI main.py and updated images
1 parent bb3d2fa commit 62bde6f

File tree

7 files changed

+11
-9
lines changed

7 files changed

+11
-9
lines changed

charts/postgres-operator-ui/index.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ entries:
33
postgres-operator-ui:
44
- apiVersion: v1
55
appVersion: 1.5.0
6-
created: "2020-05-04T16:36:04.770110276+02:00"
6+
created: "2020-05-08T12:07:31.651762139+02:00"
77
description: Postgres Operator UI provides a graphical interface for a convenient
88
database-as-a-service user experience
9-
digest: ff373185f9d125f918935b226eaed0a245cc4dd561f884424d92f094b279afe9
9+
digest: d7a36de8a3716f7b7954e2e51ed07863ea764dbb129a2fd3ac6a453f9e98a115
1010
home: https://github.com/zalando/postgres-operator
1111
keywords:
1212
- postgres
@@ -26,7 +26,7 @@ entries:
2626
version: 1.5.0
2727
- apiVersion: v1
2828
appVersion: 1.4.0
29-
created: "2020-05-04T16:36:04.769604808+02:00"
29+
created: "2020-05-08T12:07:31.651223951+02:00"
3030
description: Postgres Operator UI provides a graphical interface for a convenient
3131
database-as-a-service user experience
3232
digest: 00e0eff7056d56467cd5c975657fbb76c8d01accd25a4b7aca81bc42aeac961d
@@ -49,4 +49,4 @@ entries:
4949
urls:
5050
- postgres-operator-ui-1.4.0.tgz
5151
version: 1.4.0
52-
generated: "2020-05-04T16:36:04.768922456+02:00"
52+
generated: "2020-05-08T12:07:31.650495247+02:00"
13 Bytes
Binary file not shown.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ rules:
3838
- apiGroups:
3939
- apps
4040
resources:
41+
- deployments
4142
- statefulsets
4243
verbs:
4344
- get

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
apiVersion: "apps/v1"
2-
kind: "Deployment"
1+
apiVersion: apps/v1
2+
kind: Deployment
33
metadata:
44
labels:
55
app.kubernetes.io/name: {{ template "postgres-operator-ui.name" . }}
@@ -44,7 +44,7 @@ spec:
4444
- name: "OPERATOR_CLUSTER_NAME_LABEL"
4545
value: {{ .Values.envs.operatorClusterNameLabel }}
4646
- name: "RESOURCES_VISIBLE"
47-
value: {{ .Values.envs.resourcesVisible }}
47+
value: "{{ .Values.envs.resourcesVisible }}"
4848
- name: "TARGET_NAMESPACE"
4949
value: {{ .Values.envs.targetNamespace }}
5050
- name: "TEAMS"

charts/postgres-operator-ui/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ replicaCount: 1
88
image:
99
registry: registry.opensource.zalan.do
1010
repository: acid/postgres-operator-ui
11-
tag: v1.5.0
11+
tag: v1.5.0-dirty
1212
pullPolicy: "IfNotPresent"
1313

1414
rbac:

ui/manifests/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020
serviceAccountName: postgres-operator-ui
2121
containers:
2222
- name: "service"
23-
image: registry.opensource.zalan.do/acid/postgres-operator-ui:v1.5.0
23+
image: registry.opensource.zalan.do/acid/postgres-operator-ui:v1.5.0-dirty
2424
ports:
2525
- containerPort: 8081
2626
protocol: "TCP"

ui/operator_ui/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import requests
99
import tokens
10+
import sys
1011

1112
from backoff import expo, on_exception
1213
from click import ParamType, command, echo, option

0 commit comments

Comments
 (0)