Skip to content

Commit abd01a5

Browse files
dnskrmattray
andauthored
Template Prometheus values (#100)
Signed-off-by: Matt Ray <github@mattray.dev> Co-authored-by: Matt Ray <github@mattray.dev>
1 parent e78139e commit abd01a5

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

charts/opencost/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ keywords:
99
- kubecost
1010
- opencost
1111
- monitoring
12-
version: 1.19.0
12+
version: 1.19.1
1313
maintainers:
1414
- name: mattray
1515
url: https://mattray.dev

charts/opencost/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
OpenCost and OpenCost UI
44

5-
![Version: 1.18.1](https://img.shields.io/badge/Version-1.18.1-informational?style=flat-square)
5+
![Version: 1.19.1](https://img.shields.io/badge/Version-1.19.1-informational?style=flat-square)
66
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
77
![AppVersion: 1.105.2](https://img.shields.io/badge/AppVersion-1.105.2-informational?style=flat-square)
88

@@ -116,6 +116,7 @@ $ helm install opencost opencost/opencost
116116
| serviceAccount.annotations | object | `{}` | Annotations to add to the service account |
117117
| serviceAccount.automountServiceAccountToken | bool | `true` | Whether pods running as this service account should have an API token automatically mounted |
118118
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created |
119+
| serviceAccount.name | string | `""` | |
119120

120121
----------------------------------------------
121122
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)

charts/opencost/templates/_helpers.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ Create the name of the controller service account to use
8282
*/}}
8383
{{- define "opencost.prometheusServerEndpoint" -}}
8484
{{- if .Values.opencost.prometheus.external.enabled -}}
85-
{{ .Values.opencost.prometheus.external.url }}
85+
{{ tpl .Values.opencost.prometheus.external.url . }}
8686
{{- else -}}
87-
{{- $host := .Values.opencost.prometheus.internal.serviceName }}
88-
{{- $ns := .Values.opencost.prometheus.internal.namespaceName }}
87+
{{- $host := tpl .Values.opencost.prometheus.internal.serviceName . }}
88+
{{- $ns := tpl .Values.opencost.prometheus.internal.namespaceName . }}
8989
{{- $port := .Values.opencost.prometheus.internal.port | int }}
9090
{{- printf "http://%s.%s.svc:%d" $host $ns $port -}}
9191
{{- end -}}

charts/opencost/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ opencost:
160160
# -- Use external Prometheus (eg. Grafana Cloud)
161161
enabled: false
162162
# -- External Prometheus url
163-
url: 'https://prometheus.example.com/prometheus'
163+
url: "https://prometheus.example.com/prometheus"
164164
internal:
165165
# -- Use in-cluster Prometheus
166166
enabled: true

0 commit comments

Comments
 (0)