From 66b97f6215f4f8a9711f706a16ffd56e2d16ca2f Mon Sep 17 00:00:00 2001 From: Daniel Cosme Date: Fri, 1 May 2026 18:46:20 -0400 Subject: [PATCH] Add kustomization file to monitoring --- apps/hydra/linkding/kustomization.yaml | 2 +- .../hydra/monitoring/kustomization.yaml | 9 +++++++++ .../hydra/truenas-csi/kustomization.yaml | 2 +- pkg/monitoring/monitoring.go | 16 +++++++++------- 4 files changed, 20 insertions(+), 9 deletions(-) create mode 100644 infrastructure/hydra/monitoring/kustomization.yaml diff --git a/apps/hydra/linkding/kustomization.yaml b/apps/hydra/linkding/kustomization.yaml index c922b44..96e2f9e 100644 --- a/apps/hydra/linkding/kustomization.yaml +++ b/apps/hydra/linkding/kustomization.yaml @@ -4,7 +4,7 @@ metadata: name: linking namespace: linkding resources: -- namespace.yaml - srv.yaml - pvc.yaml - deployment.yaml +- namespace.yaml diff --git a/infrastructure/hydra/monitoring/kustomization.yaml b/infrastructure/hydra/monitoring/kustomization.yaml new file mode 100644 index 0000000..e6f7beb --- /dev/null +++ b/infrastructure/hydra/monitoring/kustomization.yaml @@ -0,0 +1,9 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +metadata: + name: monitoring + namespace: monitoring +resources: +- kube-prometheus-stack.yaml +- release.yaml +- namespace.yaml diff --git a/infrastructure/hydra/truenas-csi/kustomization.yaml b/infrastructure/hydra/truenas-csi/kustomization.yaml index 1509ea8..3616ec0 100644 --- a/infrastructure/hydra/truenas-csi/kustomization.yaml +++ b/infrastructure/hydra/truenas-csi/kustomization.yaml @@ -4,7 +4,7 @@ metadata: name: truenas-csi namespace: truenas-csi resources: +- iscsi-storage-class.yaml - namespace.yaml - config.yaml - nfs-storage-class.yaml -- iscsi-storage-class.yaml diff --git a/pkg/monitoring/monitoring.go b/pkg/monitoring/monitoring.go index 879dad1..359c2ab 100644 --- a/pkg/monitoring/monitoring.go +++ b/pkg/monitoring/monitoring.go @@ -23,13 +23,15 @@ func init() { } func Stack() stack.Stack { - s := stack.NewStack("monitoring", map[string]any{ - "namespace": Namespace, - "kube-prometheus-stack": PrometheusHelmSource(), - "release": PrometheusRelease(), - }) - - return s + kz := kube.NewKuztomizedStack( + meta, + map[string]any{ + "namespace": Namespace, + "kube-prometheus-stack": PrometheusHelmSource(), + "release": PrometheusRelease(), + }, + ) + return kz.Stack("monitoring") } func PrometheusHelmSource() source.HelmRepository {