From 84f9d4bd959dd8cf1a2bef24cf2967ed896af4e3 Mon Sep 17 00:00:00 2001 From: John Gardiner Myers Date: Tue, 4 Jul 2023 12:09:05 -0700 Subject: [PATCH] Remove flags and documentation for removed contour-ingressroute source --- charts/external-dns/README.md | 1 - .../external-dns/templates/clusterrole.yaml | 5 --- docs/tutorials/contour.md | 41 ++----------------- main.go | 1 - pkg/apis/externaldns/types.go | 7 +--- pkg/apis/externaldns/types_test.go | 2 - source/store.go | 1 - source/store_test.go | 22 ++++------ 8 files changed, 14 insertions(+), 66 deletions(-) diff --git a/charts/external-dns/README.md b/charts/external-dns/README.md index e3433227be..145cc78037 100644 --- a/charts/external-dns/README.md +++ b/charts/external-dns/README.md @@ -106,7 +106,6 @@ If `namespaced` is set to `true`, please ensure that `sources` my only contains | `ingress` | ✅ | | | `istio-gateway` | ✅ | | | `istio-virtualservice` | ✅ | | -| `contour-ingressroute` | ✅ | | | `crd` | ✅ | | | `kong-tcpingress` | ✅ | | | `openshift-route` | ✅ | | diff --git a/charts/external-dns/templates/clusterrole.yaml b/charts/external-dns/templates/clusterrole.yaml index 11852f1cf4..7514beef72 100644 --- a/charts/external-dns/templates/clusterrole.yaml +++ b/charts/external-dns/templates/clusterrole.yaml @@ -47,11 +47,6 @@ rules: resources: ["httpproxies"] verbs: ["get","watch","list"] {{- end }} -{{- if has "contour-ingressroute" .Values.sources }} - - apiGroups: ["contour.heptio.com"] - resources: ["ingressroutes"] - verbs: ["get","watch","list"] -{{- end }} {{- if has "crd" .Values.sources }} - apiGroups: ["externaldns.k8s.io"] resources: ["dnsendpoints"] diff --git a/docs/tutorials/contour.md b/docs/tutorials/contour.md index cdb30c52e0..ce27553b8b 100644 --- a/docs/tutorials/contour.md +++ b/docs/tutorials/contour.md @@ -1,12 +1,10 @@ # Setting up External DNS with Contour -This tutorial describes how to configure External DNS to use either the Contour `IngressRoute` or `HTTPProxy` source. -The `IngressRoute` CRD is deprecated but still in-use in many clusters however it's recommended that you migrate to the `HTTPProxy` resource. +This tutorial describes how to configure External DNS to use the Contour `HTTPProxy` source. Using the `HTTPProxy` resource with External DNS requires Contour version 1.5 or greater. ### Example manifests for External DNS #### Without RBAC -Note that you don't need to enable both of the sources and if you don't enable `contour-ingressroute` you also don't need to configure the `contour-load-balancer` setting. ```yaml apiVersion: apps/v1 @@ -30,9 +28,7 @@ spec: args: - --source=service - --source=ingress - - --source=contour-ingressroute # To enable IngressRoute support - - --source=contour-httpproxy # To enable HTTPProxy support - - --contour-load-balancer=custom-contour-namespace/custom-contour-lb # For IngressRoute ONLY: load balancer service to be used. Omit to use the default (heptio-contour/contour) + - --source=contour-httpproxy - --domain-filter=external-dns-test.my-org.com # will make ExternalDNS see only the hosted zones matching provided domain, omit to process all available hosted zones - --provider=aws - --policy=upsert-only # would prevent ExternalDNS from deleting any records, omit to enable full synchronization @@ -62,11 +58,6 @@ rules: - apiGroups: [""] resources: ["nodes"] verbs: ["list"] -# This section is only for IngressRoute -- apiGroups: ["contour.heptio.com"] - resources: ["ingressroutes"] - verbs: ["get","watch","list"] -# This section is only for HTTPProxy - apiGroups: ["projectcontour.io"] resources: ["httpproxies"] verbs: ["get","watch","list"] @@ -106,9 +97,7 @@ spec: args: - --source=service - --source=ingress - - --source=contour-ingressroute # To enable IngressRoute support - - --source=contour-httpproxy # To enable HTTPProxy support - - --contour-load-balancer=custom-contour-namespace/custom-contour-lb # For IngressRoute ONLY: load balancer service to be used. Omit to use the default (heptio-contour/contour) + - --source=contour-httpproxy - --domain-filter=external-dns-test.my-org.com # will make ExternalDNS see only the hosted zones matching provided domain, omit to process all available hosted zones - --provider=aws - --policy=upsert-only # would prevent ExternalDNS from deleting any records, omit to enable full synchronization @@ -162,9 +151,8 @@ spec: EOF ``` -Then create either a `HTTPProxy` or an `IngressRoute` +Then create an `HTTPProxy`: -#### HTTPProxy ``` $ kubectl apply -f - <