This commit is contained in:
2024-05-12 12:03:32 +02:00
parent 599d175f82
commit 2890064fd4
191 changed files with 893 additions and 1068 deletions

View File

@@ -5,7 +5,7 @@ resource "kubectl_manifest" "config" {
metadata:
name: promtail
namespace: "${var.namespace}"
labels: ${jsonencode(local.common-labels)}
labels: ${jsonencode(local.common_labels)}
data:
promtail.yaml: |
server:

View File

@@ -1,5 +1,5 @@
locals {
common-labels = {
common_labels = {
"vynil.solidite.fr/owner-name" = var.instance
"vynil.solidite.fr/owner-namespace" = var.namespace
"vynil.solidite.fr/owner-category" = var.category
@@ -15,7 +15,7 @@ locals {
}
data "kustomization_overlay" "data" {
common_labels = local.common-labels
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]
images {
@@ -25,7 +25,7 @@ data "kustomization_overlay" "data" {
}
}
data "kustomization_overlay" "data_no_ns" {
common_labels = local.common-labels
common_labels = local.common_labels
resources = [for file in fileset(path.module, "*.yaml"): file if length(regexall("ClusterRole",file))>0]
patches {