Skip to content

Commit cf15d1f

Browse files
Qixuanwtoscott
andauthored
add secret annotation to enable reading from Vault (#47)
* add secret annotation to enable reading from Vault * chore: bump chart version * fix linting --------- Signed-off-by: Tony Scott <toscott@users.noreply.github.com> Co-authored-by: Tony Scott <toscott@users.noreply.github.com> Co-authored-by: Tony Scott <toscott1@gmail.com>
1 parent 87f8626 commit cf15d1f

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
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.8.1
12+
version: 1.9.0
1313
maintainers:
1414
- name: mattray
1515
url: https://mattray.dev

charts/opencost/templates/secret.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ metadata:
66
{{- include "opencost.labels" . | nindent 4 }}
77
name: {{ include "opencost.fullname" . }}
88
namespace: {{ .Release.Namespace }}
9+
{{- with .Values.secretAnnotations }}
10+
annotations:
11+
{{- toYaml . | nindent 4 }}
12+
{{- end }}
913
data:
1014
{{- if .Values.opencost.prometheus.username }}
1115
DB_BASIC_AUTH_USERNAME: {{ .Values.opencost.prometheus.username | b64enc | quote }}

charts/opencost/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ serviceAccount:
1212
annotations: {}
1313
# -- Annotations to add to the OpenCost Pod
1414
podAnnotations: {}
15+
# -- Annotations to add to the Secret
16+
secretAnnotations: {}
1517
# -- Labels to add to the OpenCost Pod
1618
podLabels: {}
1719

0 commit comments

Comments
 (0)