Add custom annotations to postgres-operator-ui objects (#1748)
* Add custom annotations to postgres-operator-ui's pod and service Signed-off-by: Antoine Bardoux <antoine.b@padoa-group.com>
This commit is contained in:
parent
bb2617a53f
commit
bbc0de3ffd
|
|
@ -19,6 +19,10 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "postgres-operator-ui.name" . }}
|
app.kubernetes.io/name: {{ template "postgres-operator-ui.name" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- with .Values.podAnnotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: {{ include "postgres-operator-ui.serviceAccountName" . }}
|
serviceAccountName: {{ include "postgres-operator-ui.serviceAccountName" . }}
|
||||||
{{- if .Values.imagePullSecrets }}
|
{{- if .Values.imagePullSecrets }}
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,10 @@ metadata:
|
||||||
helm.sh/chart: {{ template "postgres-operator-ui.chart" . }}
|
helm.sh/chart: {{ template "postgres-operator-ui.chart" . }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- with .Values.service.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
name: {{ template "postgres-operator-ui.fullname" . }}
|
name: {{ template "postgres-operator-ui.fullname" . }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
spec:
|
spec:
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,10 @@ envs:
|
||||||
teams:
|
teams:
|
||||||
- "acid"
|
- "acid"
|
||||||
|
|
||||||
|
# Extra pod annotations
|
||||||
|
podAnnotations:
|
||||||
|
{}
|
||||||
|
|
||||||
# configure extra UI ENVs
|
# configure extra UI ENVs
|
||||||
# Extra ENVs are writen in kubenertes format and added "as is" to the pod's env variables
|
# Extra ENVs are writen in kubenertes format and added "as is" to the pod's env variables
|
||||||
# https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/
|
# https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/
|
||||||
|
|
@ -85,6 +89,8 @@ service:
|
||||||
# If the type of the service is NodePort a port can be specified using the nodePort field
|
# If the type of the service is NodePort a port can be specified using the nodePort field
|
||||||
# If the nodePort field is not specified, or if it has no value, then a random port is used
|
# If the nodePort field is not specified, or if it has no value, then a random port is used
|
||||||
# nodePort: 32521
|
# nodePort: 32521
|
||||||
|
annotations:
|
||||||
|
{}
|
||||||
|
|
||||||
# configure UI ingress. If needed: "enabled: true"
|
# configure UI ingress. If needed: "enabled: true"
|
||||||
ingress:
|
ingress:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue