Skip to content

Commit

Permalink
allow overriding coroot-cluster-agent' name
Browse files Browse the repository at this point in the history
  • Loading branch information
def committed Feb 13, 2024
1 parent 6c8bd5b commit e54a7d9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/coroot/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: coroot
description: A monitoring and troubleshooting tool for microservice architectures.
type: application
version: 0.8.4
version: 0.8.5
appVersion: "0.29.0"
dependencies:
- name: prometheus
Expand Down
4 changes: 4 additions & 0 deletions charts/coroot/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,12 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
Coroot Cluster Agent
*/}}
{{- define "corootClusterAgent.name" -}}
{{- if .Values.corootClusterAgent.fullnameOverride -}}
{{- .Values.corootClusterAgent.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-cluster-agent" .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- define "corootClusterAgent.selectorLabels" -}}
app.kubernetes.io/name: {{ include "corootClusterAgent.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
Expand Down
1 change: 1 addition & 0 deletions charts/coroot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ corootConnect:

corootClusterAgent:
enabled: true
fullnameOverride: ""
config:
listen: :8080
clickhouse:
Expand Down

0 comments on commit e54a7d9

Please sign in to comment.