From d2932e33853ffec7abeaf9790f7df3980b0ff62b Mon Sep 17 00:00:00 2001 From: Mikael Johansson Date: Mon, 27 Mar 2023 12:40:16 +0200 Subject: [PATCH] Add RBAC to support F5 VirtualServer source Signed-off-by: Mikael Johansson --- charts/external-dns/CHANGELOG.md | 6 ++++++ charts/external-dns/templates/clusterrole.yaml | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/charts/external-dns/CHANGELOG.md b/charts/external-dns/CHANGELOG.md index 8e30bd0e22..170a49fee4 100644 --- a/charts/external-dns/CHANGELOG.md +++ b/charts/external-dns/CHANGELOG.md @@ -17,6 +17,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Deprecated - Removed --> +## [v1.12.2] - UNRELEASED + +### All Changes + +- Add RBAC to be able to support the F5 VirtualServer `Source` ([#3503](https://github.com/kubernetes-sigs/external-dns/pull/3503)) [@mikejoh](https://github.com/mikejoh) + ## [v1.12.1] - 2023-02-06 ### All Changes diff --git a/charts/external-dns/templates/clusterrole.yaml b/charts/external-dns/templates/clusterrole.yaml index 8fcc15dced..330b919b3f 100644 --- a/charts/external-dns/templates/clusterrole.yaml +++ b/charts/external-dns/templates/clusterrole.yaml @@ -83,6 +83,11 @@ rules: resources: ["routegroups/status"] verbs: ["patch","update"] {{- end }} +{{- if has "f5-virtualserver" .Values.sources }} + - apiGroups: ["cis.f5.com"] + resources: ["virtualservers"] + verbs: ["get","watch","list"] +{{- end }} {{- with .Values.rbac.additionalPermissions }} {{- toYaml . | nindent 2 }} {{- end }}