From 69a538a182499ebaf0934d7117022423239a8717 Mon Sep 17 00:00:00 2001 From: erdrix Date: Sun, 24 Sep 2023 15:15:44 +0200 Subject: [PATCH] fix clusterrole --- external-dns.tf | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/external-dns.tf b/external-dns.tf index b70dce3..5ea1747 100644 --- a/external-dns.tf +++ b/external-dns.tf @@ -20,25 +20,19 @@ locals { verbs = ["get", "watch", "list", ] }, { - api_groups = ["extensions", ] + api_groups = ["networking", "extensions", "networking.k8s.io"] resources = ["ingresses", ] verbs = ["get", "watch", "list", ] } ] cluster_role_rules_additional = var.watch_istio ? [ - { - api_groups = ["networking", "extensions", "networking.k8s.io"] - resources = ["ingresses", ] - verbs = ["get", "watch", "list", ] - }, { api_groups = ["networking.istio.io"] resources = ["gateways", "virtualservices"] verbs = ["get", "watch", "list", ] } ] : [] - cluster_role_rules = concat(local.cluster_role_rules_default, local.cluster_role_rules_additional) }