replace hardcoded namespace with module reference [ci skip]

This commit is contained in:
Viktor Barzin 2025-12-29 10:23:42 +00:00
parent b5924ad59b
commit a3624f80e0
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
88 changed files with 458 additions and 450 deletions

View file

@ -2,7 +2,7 @@
resource "kubernetes_persistent_volume_claim" "prometheus_server_pvc" {
metadata {
name = "prometheus-iscsi-pvc"
namespace = "monitoring"
namespace = kubernetes_namespace.monitoring.metadata[0].name
}
spec {
@ -45,7 +45,7 @@ resource "kubernetes_persistent_volume" "prometheus_server_pvc" {
}
resource "helm_release" "prometheus" {
namespace = "monitoring"
namespace = kubernetes_namespace.monitoring.metadata[0].name
create_namespace = true
name = "prometheus"