Skip to content

Commit

Permalink
feat: add namespaceSelector to loki extraIngresses
Browse files Browse the repository at this point in the history
  • Loading branch information
omohammed95 committed Aug 28, 2024
1 parent a2002f6 commit 1de35c8
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}]
}
] : []
Expand Down Expand Up @@ -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"
}
}
}]
}
] : []
Expand Down

0 comments on commit 1de35c8

Please sign in to comment.