Skip to content

Commit

Permalink
chore(prom): Update to newest external-secrets (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkochendorfer authored Aug 12, 2022
1 parent 8fc8459 commit 4248002
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/prometheus-customizations/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ description: An opinionated helm chart to setup our prometheus instances. Requir

type: application

version: 0.0.4
version: 0.1.0
16 changes: 10 additions & 6 deletions charts/prometheus-customizations/templates/influx-secret.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{{- if .Values.influxdb.enabled }}
apiVersion: 'kubernetes-client.io/v1'
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: influx-secret
spec:
backendType: secretsManager
region: us-west-2
data:
- key: "{{ .Values.influxdb.secret_key }}"
name: "{{ .Values.influxdb.secret_name }}"
property: "{{ .Values.influxdb.property }}"
- remoteRef:
key: "{{ .Values.influxdb.secret_key }}"
property: "{{ .Values.influxdb.property }}"
secretKey: "{{ .Values.influxdb.secret_name }}"
secretStoreRef:
kind: ClusterSecretStore
name: {{ .Values.externalSecrets.store }}
target:
name: {{ .Values.influxdb.secret_name }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/prometheus-customizations/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ influxdb:
secret_key: "/prometheus/influx"
secret_name: "influxurl"
property: "influxurl"

externalSecrets:
store: secretsmanager-secretstore

0 comments on commit 4248002

Please sign in to comment.