From 34882156ec7535a89ca60b3f8aab1adc582a38b9 Mon Sep 17 00:00:00 2001 From: rahtr <31742059+rahtr@users.noreply.github.com> Date: Mon, 21 Aug 2023 11:12:38 -0400 Subject: [PATCH] Added annotation filter (#10) --- charts/external-dns/templates/deployment.yaml | 3 +++ charts/external-dns/values.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/charts/external-dns/templates/deployment.yaml b/charts/external-dns/templates/deployment.yaml index 94a1635c2d..9ce51ba9b0 100644 --- a/charts/external-dns/templates/deployment.yaml +++ b/charts/external-dns/templates/deployment.yaml @@ -105,6 +105,9 @@ spec: {{- if .Values.txtPrefix }} - --txt-prefix={{ .Values.txtPrefix }} {{- end }} + {{- if .Values.annotationFilter }} + - --annotation-filter={{ .Values.annotationFilter }} + {{- end }} {{- if and (eq .Values.txtPrefix "") (ne .Values.txtSuffix "") }} - --txt-suffix={{ .Values.txtSuffix }} {{- end }} diff --git a/charts/external-dns/values.yaml b/charts/external-dns/values.yaml index 9a9d50b15c..6a7020708e 100644 --- a/charts/external-dns/values.yaml +++ b/charts/external-dns/values.yaml @@ -199,6 +199,9 @@ sources: # -- How DNS records are synchronized between sources and providers; available values are `sync` & `upsert-only`. policy: upsert-only +# Filters out resources based on annotations +annotationFilter: "" + # -- Specify the registry for storing ownership and labels. # Valid values are `txt`, `aws-sd`, `dynamodb` & `noop`. registry: txt