cerebro: add support for extra deployment labels (#21053)

Signed-off-by: fabriziofortino <fabrizio.fortino@gmail.com>
This commit is contained in:
Fabrizio Fortino
2020-02-26 14:03:20 -08:00
committed by GitHub
parent 6a9da11bd9
commit 42d756b0d9
4 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: cerebro
version: 1.3.1
version: 1.4.0
appVersion: 0.8.5
apiVersion: v1
description: A Helm chart for Cerebro - a web admin tool that replaces Kopf.
+1
View File
@@ -49,6 +49,7 @@ 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.labels` | Additional labels for deployment | `{}` |
| `service.type` | Type of Service | `ClusterIP` |
| `service.port` | Port for kubernetes service | `80` |
| `service.annotations` | Annotations to add to the service | `{}` |
+3
View File
@@ -7,6 +7,9 @@ metadata:
chart: {{ template "cerebro.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- range $key, $value := .Values.deployment.labels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- if .Values.deployment.annotations }}
annotations:
{{ toYaml .Values.deployment.annotations | indent 4 }}
+2
View File
@@ -12,6 +12,8 @@ image:
pullPolicy: IfNotPresent
deployment:
# additionals labels
labels: {}
annotations: {}
service: