Create namespace if thanos is enabled

This commit is contained in:
Jim Martens 2023-11-07 08:20:54 +01:00
parent 1f2da6962a
commit b2d6c39bee
2 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,6 @@
apiVersion: v2
name: cluster_setup
version: 0.3.1
version: 0.3.2
type: application
description: "Initial cluster setup"
maintainers:
@ -8,8 +8,8 @@ maintainers:
url: https://2martens.de
annotations:
artifacthub.io/changes: |
- kind: fixed
description: Disable thanos by default
- kind: changed
description: Create namespace if thanos is enabled
artifacthub.io/signKey: |
fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8
url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc

View File

@ -1,5 +1,10 @@
{{- if .Values.thanos.enabled }}
apiVersion: v1
kind: Namespace
metadata:
name: {{ .Values.thanos.namespace | default "observability" }}
---
apiVersion: v1
kind: Secret
metadata:
namespace: {{ .Values.thanos.namespace | default "observability" }}