Skip to content

Commit

Permalink
Merge pull request #3 from konpyutaika/fix/clusterrolle
Browse files Browse the repository at this point in the history
fix clusterrole
  • Loading branch information
erdrix authored Sep 24, 2023
2 parents cac889c + 69a538a commit f9d6281
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions external-dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit f9d6281

Please sign in to comment.