feat(cluster_setup): Use secret in multiple namespaces

This commit is contained in:
Jim Martens 2024-02-03 22:09:32 +01:00
parent 5c269c7118
commit 2b606fb169
Signed by: 2martens
GPG Key ID: 47393ABD1F96B7C8
3 changed files with 8 additions and 5 deletions

View File

@ -1,6 +1,6 @@
apiVersion: v2
name: cluster_setup
version: 0.4.1
version: 0.5.0
type: application
description: "Initial cluster setup"
maintainers:
@ -8,8 +8,8 @@ maintainers:
url: https://2martens.de
annotations:
artifacthub.io/changes: |
- kind: fixed
description: Fixed network policies
- kind: added
description: Added ability to use secret in multiple namespaces
artifacthub.io/signKey: |
fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8
url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc

View File

@ -7,11 +7,12 @@ metadata:
{{- include "template.labels" . | nindent 4 }}
annotations:
{{- include "template.annotations" . | nindent 4 }}
{{- range .Values.thanos.secretNamespaces }}
---
apiVersion: v1
kind: Secret
metadata:
namespace: {{ .Values.thanos.namespace | default "observability" }}
namespace: {{ .name | default "observability" }}
name: thanos-object-storage-config
labels:
{{- include "template.labels" . | nindent 4 }}
@ -19,5 +20,6 @@ metadata:
{{- include "template.annotations" . | nindent 4 }}
data:
thanos.yaml: |-
{{ tpl (.Files.Get "thanos.yaml") . | b64enc }}
{{ tpl ($.Files.Get "thanos.yaml") . | b64enc }}
{{- end }}
{{- end }}

View File

@ -17,5 +17,6 @@ thanos:
awsRegion: "eu-central-1"
accessKey: ""
secretKey: ""
secretNamespaces: []
cilium:
enabled: false