Skip to content

Commit

Permalink
Merge branch 'pr/123'
Browse files Browse the repository at this point in the history
  • Loading branch information
mattray committed Oct 18, 2023
2 parents 7116423 + fc04cae commit 229f728
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/opencost/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ keywords:
- kubecost
- opencost
- monitoring
version: 1.20.3
version: 1.21.0
maintainers:
- name: mattray
url: https://mattray.dev
Expand Down
2 changes: 1 addition & 1 deletion charts/opencost/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

OpenCost and OpenCost UI

![Version: 1.20.2](https://img.shields.io/badge/Version-1.20.2-informational?style=flat-square)
![Version: 1.21.0](https://img.shields.io/badge/Version-1.21.0-informational?style=flat-square)
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![AppVersion: 1.106.3](https://img.shields.io/badge/AppVersion-1.106.3-informational?style=flat-square)

Expand Down
5 changes: 4 additions & 1 deletion charts/opencost/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ spec:
value: {{ include "opencost.prometheusServerEndpoint" . | quote }}
{{- if .Values.opencost.exporter.cloudProviderApiKey }}
- name: CLOUD_PROVIDER_API_KEY
value: {{ .Values.opencost.exporter.cloudProviderApiKey | quote }}
valueFrom:
secretKeyRef:
name: {{ include "opencost.prometheus.secretname" . }}
key: CLOUD_PROVIDER_API_KEY
{{- end }}
- name: CLUSTER_ID
value: {{ .Values.opencost.exporter.defaultClusterId | quote }}
Expand Down
5 changes: 4 additions & 1 deletion charts/opencost/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or .Values.opencost.prometheus.username .Values.opencost.prometheus.password .Values.opencost.prometheus.bearer_token .Values.opencost.exporter.aws.access_key_id }}
{{- if or .Values.opencost.prometheus.username .Values.opencost.prometheus.password .Values.opencost.prometheus.bearer_token .Values.opencost.exporter.aws.access_key_id .Values.opencost.exporter.cloudProviderApiKey }}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -23,4 +23,7 @@ data:
{{- if .Values.opencost.exporter.aws.access_key_id }}
AWS_SECRET_ACCESS_KEY: {{ .Values.opencost.exporter.aws.secret_access_key | b64enc | quote }}
{{- end }}
{{- if .Values.opencost.exporter.cloudProviderApiKey }}
CLOUD_PROVIDER_API_KEY: {{ .Values.opencost.exporter.cloudProviderApiKey | b64enc | quote }}
{{- end }}
{{- end }}

0 comments on commit 229f728

Please sign in to comment.