From 97eaecec48cb9bf447299ef587cfcd8997c68b92 Mon Sep 17 00:00:00 2001 From: Alexis Gauthiez Date: Tue, 19 Oct 2021 16:36:34 +0200 Subject: [PATCH] Add `podLabels` to loadtester chart Signed-off-by: Alexis Gauthiez --- charts/loadtester/templates/deployment.yaml | 3 +++ charts/loadtester/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/charts/loadtester/templates/deployment.yaml b/charts/loadtester/templates/deployment.yaml index 5dddd014..c52dacca 100644 --- a/charts/loadtester/templates/deployment.yaml +++ b/charts/loadtester/templates/deployment.yaml @@ -17,6 +17,9 @@ spec: labels: app: {{ include "loadtester.name" . }} app.kubernetes.io/name: {{ include "loadtester.name" . }} + {{- range $key, $value := .Values.podLabels }} + {{ $key }}: {{ $value | quote }} + {{- end }} annotations: appmesh.k8s.aws/ports: "444" openservicemesh.io/inbound-port-exclusion-list: "80, 8080" diff --git a/charts/loadtester/values.yaml b/charts/loadtester/values.yaml index edcd5b3c..22104be4 100644 --- a/charts/loadtester/values.yaml +++ b/charts/loadtester/values.yaml @@ -5,6 +5,8 @@ image: tag: 0.18.0 pullPolicy: IfNotPresent +podLabels: {} + podAnnotations: prometheus.io/scrape: "true" prometheus.io/port: "8080"