kubernetes-sigs / external-dns

Configure external DNS servers (AWS Route53, Google CloudDNS and others) for Kubernetes Ingresses and Services
Apache License 2.0
7.75k stars 2.58k forks source link

Adding multiple API Groups for VirtualServer resource #4883

Open liviobue opened 1 week ago

liviobue commented 1 week ago

What would you like to be added:

I am encountering an issue where the module is expecting the VirtualServer resource to belong to a different API group than what is configured in my setup.

Expected Behavior The extDNS module should correctly recognize the VirtualServer resource in the following configuration: apiVersion: k8s.nginx.org/v1 kind: VirtualServer

Actual Behavior The extDNS module is looking for the VirtualServer resource under a different API group:

external-dns/charts/external-dns/templates/clusterrole.yaml

{{- if has "f5-virtualserver" .Values.sources }}
  - apiGroups: ["cis.f5.com"]
    resources: ["virtualservers"]
    verbs: ["get","watch","list"]
{{- end }}

Why is this needed: Is it possible to support multiple/different API Groups for the VirtualServer resource?