fix
This commit is contained in:
@@ -5,7 +5,7 @@ resource "kubectl_manifest" "datasource" {
|
||||
metadata:
|
||||
name: loki-datasource
|
||||
namespace: "${var.namespace}"
|
||||
labels: ${jsonencode(merge(local.common-labels, {"grafana_datasource" = "1"}))}
|
||||
labels: ${jsonencode(merge(local.common_labels, {"grafana_datasource" = "1"}))}
|
||||
data:
|
||||
loki-datasource.yaml: |-
|
||||
apiVersion: 1
|
||||
@@ -27,7 +27,7 @@ resource "kubectl_manifest" "config" {
|
||||
metadata:
|
||||
name: loki
|
||||
namespace: "${var.namespace}"
|
||||
labels: ${jsonencode(local.common-labels)}
|
||||
labels: ${jsonencode(local.common_labels)}
|
||||
data:
|
||||
config.yaml: |
|
||||
auth_enabled: false
|
||||
|
||||
@@ -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
|
||||
@@ -26,7 +26,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 {
|
||||
|
||||
Reference in New Issue
Block a user