[stable/cerebro] Add support for adding labels and annotations to pod (#21707)

Signed-off-by: Keith Shook <kshook@onecause.com>
This commit is contained in:
Keith Shook
2020-04-02 07:28:24 -07:00
committed by GitHub
parent 6c18169e0e
commit 76bf4b1a06
4 changed files with 12 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: cerebro
version: 1.6.0
version: 1.7.0
appVersion: 0.8.5
apiVersion: v1
description: A Helm chart for Cerebro - a web admin tool that replaces Kopf.
+2
View File
@@ -49,7 +49,9 @@ The following table lists the configurable parameters of the cerebro chart and t
| `init.image.tag` | The image tag to pull | `musl` |
| `init.image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `deployment.annotations` | Annotations for deployment | `{}` |
| `deployment.podAnnotations` | Additional pod annotations | `{}` |
| `deployment.labels` | Additional labels for deployment | `{}` |
| `deployment.podLabels` | Additional pod labels | `{}` |
| `deployment.livenessProbe.enabled` | Enable livenessProbe | `true` |
| `deployment.readinessProbe.enabled` | Enable readinessProbe | `true` |
| `service.type` | Type of Service | `ClusterIP` |
+6
View File
@@ -26,8 +26,14 @@ spec:
labels:
app: {{ template "cerebro.name" . }}
release: {{ .Release.Name }}
{{- if .Values.deployment.podLabels }}
{{- toYaml .Values.deployment.podLabels | nindent 8 }}
{{- end }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- if .Values.deployment.podAnnotations }}
{{- toYaml .Values.deployment.podAnnotations | nindent 8 }}
{{- end }}
spec:
{{- if .Values.securityContext }}
securityContext:
+3 -1
View File
@@ -12,9 +12,11 @@ image:
pullPolicy: IfNotPresent
deployment:
# additionals labels
# additional labels
labels: {}
annotations: {}
podLabels: {}
podAnnotations: {}
livenessProbe:
enabled: true
readinessProbe: