Skip to content

Commit 60ca74a

Browse files
support extraObjects type string
1 parent 11cd77d commit 60ca74a

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{{ range .Values.extraObjects }}
22
---
3-
{{ tpl (toYaml .) $ }}
4-
{{ end }}
3+
{{- if typeIs "string" . }}
4+
{{ tpl . $ }}
5+
{{ else }}
6+
{{ tpl (. | toYaml) $ }}
7+
{{- end }}
8+
{{ end }}

charts/k8s-monitoring/values.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,3 +442,22 @@ extraObjects: []
442442
# dataFrom:
443443
# - extract:
444444
# key: mysecret
445+
# - |-
446+
# apiVersion: external-secrets.io/v1beta1
447+
# kind: ExternalSecret
448+
# metadata:
449+
# name: prometheus-secret
450+
# spec:
451+
# refreshInterval: 1h
452+
# secretStoreRef:
453+
# kind: SecretStore
454+
# name: example
455+
# target:
456+
# template:
457+
# data:
458+
# prometheus_host: "{{ .Values.externalServices.prometheus.host }}"
459+
# username: "{{`{{ .username }}`}}"
460+
# password: "{{`{{ .password }}`}}"
461+
# dataFrom:
462+
# - extract:
463+
# key: mysecret

0 commit comments

Comments
 (0)