From a7cbe1ce8369fe07dd3b016b03587c315dcc7e87 Mon Sep 17 00:00:00 2001 From: jesse goodier <31039225+jessegoodier@users.noreply.github.com> Date: Fri, 13 Sep 2024 14:18:07 +0000 Subject: [PATCH] aggregator custom labels template --- cost-analyzer/templates/aggregator-service.yaml | 3 +++ cost-analyzer/values.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/cost-analyzer/templates/aggregator-service.yaml b/cost-analyzer/templates/aggregator-service.yaml index 40f6729de..134c2f37d 100644 --- a/cost-analyzer/templates/aggregator-service.yaml +++ b/cost-analyzer/templates/aggregator-service.yaml @@ -6,6 +6,9 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{ include "aggregator.commonLabels" . | nindent 4 }} +{{- if .Values.kubecostAggregator.service.labels }} + {{- toYaml .Values.kubecostAggregator.service.labels | nindent 4 }} +{{- end }} spec: selector: {{ include "aggregator.selectorLabels" . | nindent 4 }} diff --git a/cost-analyzer/values.yaml b/cost-analyzer/values.yaml index 9fd351bcb..2fa5b39f5 100644 --- a/cost-analyzer/values.yaml +++ b/cost-analyzer/values.yaml @@ -2740,6 +2740,9 @@ kubecostAggregator: imageVersion: latest # containerSecurityContext: + service: + labels: {} + ## Kubecost Multi-cluster Diagnostics (beta) ## A single view into the health of all agent clusters. Each agent cluster sends ## its diagnostic data to a storage bucket. Future versions may include