Skip to content

Commit

Permalink
Merge pull request #3670 from kubecost/custom-service-labels (#3671)
Browse files Browse the repository at this point in the history
aggregator custom labels template

Co-authored-by: Jesse Goodier <[email protected]>
  • Loading branch information
gcp-cherry-pick-bot[bot] and jessegoodier authored Sep 13, 2024
1 parent d6437f4 commit c9ea798
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cost-analyzer/templates/aggregator-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions cost-analyzer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c9ea798

Please sign in to comment.