From 6eef3a26c0a834f7ed38174bbb029ed4c6ba9dc6 Mon Sep 17 00:00:00 2001 From: Ashley Schuett Date: Mon, 16 Dec 2019 12:02:39 +0100 Subject: [PATCH] fix labels to use --- janus/README.md | 1 + janus/templates/deployment.yaml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/janus/README.md b/janus/README.md index a2da24aee..b2b4682ab 100644 --- a/janus/README.md +++ b/janus/README.md @@ -41,6 +41,7 @@ The following table lists the configurable parameters of the Janus chart and the | `deployment.replicaCount` | Number of Janus pod replicas | `2` | | `deployment.minAvailable` | Creates PDB is min available (must be less than replicaCount) | `1` | | `deployment.valuesFrom` | Add needed env vars from Kubernetes metadata | `POD_NAME` | +| `deployment.labels` | Add custom labels to the deployment | `app: janus` | | `deployment.databaseDSN` | Database connection string | `mongodb://janus-database:27017/janus` | | `service.type` | Kubernetes Service type | `LoadBalancer` | | `service.name` | Override service name | `` | diff --git a/janus/templates/deployment.yaml b/janus/templates/deployment.yaml index f1f411364..2d0e11e2d 100644 --- a/janus/templates/deployment.yaml +++ b/janus/templates/deployment.yaml @@ -4,7 +4,7 @@ metadata: name: {{ include "janus.fullname" . }} labels: {{ include "janus.labels" . | indent 4 }} -{{ .Values.deployment.labels | indent 4 }} +{{ toYaml .Values.deployment.labels | indent 4 }} spec: replicas: {{ .Values.deployment.replicaCount }} selector: @@ -14,7 +14,7 @@ spec: template: metadata: labels: - {{ .Values.deployment.labels | indent 8 }} +{{ toYaml .Values.deployment.labels | indent 8 }} app.kubernetes.io/name: {{ include "janus.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} {{- if or (.Values.deployment.podAnnotations) (.Values.deployment.PodAnnotations) }}