Skip to content

Commit

Permalink
Updated with recommendations from review and latest OpenCost release
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Ray <[email protected]>
  • Loading branch information
mattray committed Oct 17, 2023
1 parent 102b63f commit 89658bf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
/charts/prometheus-nats-exporter/ @caarlos0 @okgolove
/charts/prometheus-nginx-exporter/ @nlamirault @zeritti
/charts/prometheus-node-exporter/ @gianrubio @zanhsieh @zeritti
/charts/prometheus-opencost-exporter/ @mattray
/charts/prometheus-operator-admission-webhook/ @zeritti
/charts/prometheus-operator-crds/ @dacamposol @desaintmartin @jkroepke @QuentinBisson
/charts/prometheus-pgbouncer-exporter/ @stewartshea @zeritti
Expand Down
4 changes: 2 additions & 2 deletions charts/prometheus-opencost-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
appVersion: 1.106.2
appVersion: 1.106.3
version: 0.1.0
description: Prometheus OpenCost Exporter
home: https://github.com/prometheus-community/opencost_exporter
home: https://github.com/opencost/opencost-helm-chart
name: prometheus-opencost-exporter
sources:
- https://github.com/prometheus-community/opencost_exporter
Expand Down
12 changes: 6 additions & 6 deletions charts/prometheus-opencost-exporter/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,20 @@ Create chart name and version as used by the chart label.
Common labels
*/}}
{{- define "prometheus-opencost-exporter.labels" -}}
chart: {{ include "prometheus-opencost-exporter.chart" . }}
helm.sh/chart: {{ include "prometheus-opencost-exporter.chart" . }}
{{ include "prometheus-opencost-exporter.selectorLabels" . }}
heritage: {{ .Release.Service }}
{{- if .Values.commonLabels}}
{{ toYaml .Values.commonLabels }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{/*
Selector labels
*/}}
{{- define "prometheus-opencost-exporter.selectorLabels" -}}
app: {{ include "prometheus-opencost-exporter.name" . }}
release: {{ .Release.Name }}
app.kubernetes.io/name: {{ include "prometheus-opencost-exporter.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Expand Down

0 comments on commit 89658bf

Please sign in to comment.