From 1de35c84d4bd1f27151c0d0fbfcc2eecbc0db3d9 Mon Sep 17 00:00:00 2001 From: omohammed95 Date: Wed, 28 Aug 2024 16:41:26 +0200 Subject: [PATCH] feat: add namespaceSelector to loki extraIngresses --- locals.tf | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/locals.tf b/locals.tf index 1f48951..782afad 100644 --- a/locals.tf +++ b/locals.tf @@ -204,11 +204,18 @@ locals { extraIngress = var.enable_network_policies ? [ { from = [{ - podSelector = { + namespaceSelector = { matchLabels = { - "app" = "traefik" + "kubernetes.io/metadata.name" = "traefik" } } + }, + { + podSelector = { + matchLabels = { + "app" = "traefik" + } + } }] } ] : [] @@ -349,11 +356,18 @@ locals { extraIngress = var.enable_network_policies ? [ { from = [{ - podSelector = { + namespaceSelector = { matchLabels = { - "app" = "traefik" + "kubernetes.io/metadata.name" = "traefik" } } + }, + { + podSelector = { + matchLabels = { + "app" = "traefik" + } + } }] } ] : []