From fd22ff01cbc3cf92594af7940388c3f78c65dd78 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Tue, 7 Mar 2023 17:34:35 +0000 Subject: [PATCH] Start managing namespaces with `Helmfile` (#33) Reviewed-on: https://git.badhouseplants.net/badhouseplants/k8s-cluster-config/pulls/33 --- badhouseplants/helmfile.yaml | 3 +++ badhouseplants/namespaces.yaml | 10 ++++++++++ badhouseplants/values/values.namespaces.yaml | 11 +++++++++++ 3 files changed, 24 insertions(+) create mode 100644 badhouseplants/namespaces.yaml create mode 100644 badhouseplants/values/values.namespaces.yaml diff --git a/badhouseplants/helmfile.yaml b/badhouseplants/helmfile.yaml index 8186903..604b1c4 100644 --- a/badhouseplants/helmfile.yaml +++ b/badhouseplants/helmfile.yaml @@ -45,3 +45,6 @@ releases: bases: - ../environments.yaml - ../repositories.yaml + +helmfiles: + - namespaces.yaml diff --git a/badhouseplants/namespaces.yaml b/badhouseplants/namespaces.yaml new file mode 100644 index 0000000..5421b9d --- /dev/null +++ b/badhouseplants/namespaces.yaml @@ -0,0 +1,10 @@ +--- +releases: + - name: namespaces + chart: bedag/raw + version: 2.0.0 + values: + - ./values/values.namespaces.yaml +bases: + - ../environments.yaml + - ../repositories.yaml diff --git a/badhouseplants/values/values.namespaces.yaml b/badhouseplants/values/values.namespaces.yaml new file mode 100644 index 0000000..93e1841 --- /dev/null +++ b/badhouseplants/values/values.namespaces.yaml @@ -0,0 +1,11 @@ +--- +ns: + - name: monitoring +templates: + - | + {{ range .Values.ns }} + apiVersion: v1 + kind: Namespace + metadata: + name: {{ .name }} + {{ end }}