From c842a8e838db9642ec7ac167ed084ef4f5b90c66 Mon Sep 17 00:00:00 2001 From: Nathan Coleman Date: Mon, 10 Oct 2022 12:17:15 -0400 Subject: [PATCH] api-gateway: Allow controller to read MeshService resource (#1574) * Allow the API gateway controller to read MeshService resource * Add changelog entry Co-authored-by: Mike Morris --- CHANGELOG.md | 1 + .../templates/api-gateway-controller-clusterrole.yaml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c9a83c026..77c28ed475 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ IMPROVEMENTS: * Helm: * Add `tolerations` and `nodeSelector` to Server ACL init jobs and `nodeSelector` to Webhook cert manager. [[GH-1581](https://github.com/hashicorp/consul-k8s/pull/1581)] + * API Gateway: Allow controller to read MeshServices for use as a route backend. [[GH-1574](https://github.com/hashicorp/consul-k8s/pull/1574)] ## 0.49.0 (September 30, 2022) diff --git a/charts/consul/templates/api-gateway-controller-clusterrole.yaml b/charts/consul/templates/api-gateway-controller-clusterrole.yaml index cce6b5b6c6..0676c6ae4e 100644 --- a/charts/consul/templates/api-gateway-controller-clusterrole.yaml +++ b/charts/consul/templates/api-gateway-controller-clusterrole.yaml @@ -26,6 +26,14 @@ rules: - gatewayclassconfigs/finalizers verbs: - update +- apiGroups: + - api-gateway.consul.hashicorp.com + resources: + - meshservices + verbs: + - get + - list + - watch - apiGroups: - apps resources: