fix
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user