This commit is contained in:
2024-01-22 19:07:39 +01:00
parent eb413112cf
commit 339a9e7c9e
32 changed files with 127 additions and 191 deletions

View File

@@ -24,7 +24,7 @@ data "kubernetes_secret_v1" "authentik" {
data "kustomization_overlay" "data" {
common_labels = local.common-labels
namespace = var.namespace
resources = [for file in fileset(path.module, "*.yaml"): file if file != "index.yaml" && length(regexall("ClusterRole",file))<1]
resources = [for file in fileset(path.module, "*.yaml"): file if file != "index.yaml" && length(regexall("ClusterRole",file))<1 && length(regexall("Service_prometheus",file))<1]
patches {
target {
kind = "Prometheus"
@@ -210,7 +210,7 @@ data "kustomization_overlay" "data" {
data "kustomization_overlay" "data_no_ns" {
common_labels = local.common-labels
resources = [for file in fileset(path.module, "*.yaml"): file if length(regexall("ClusterRole",file))>0]
resources = [for file in fileset(path.module, "*.yaml"): file if (length(regexall("ClusterRole",file))>0 || length(regexall("Service_prometheus",file))>0)]
patches {
target {