From 8b1c15780210d0da4d47eff72bffcba911a32034 Mon Sep 17 00:00:00 2001 From: Joe Hohertz Date: Fri, 1 Feb 2019 15:19:45 -0500 Subject: [PATCH] fix test of ProviderSpecific comparison Signed-off-by: Joe Hohertz --- plan/plan.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plan/plan.go b/plan/plan.go index f7031b2c92..efe949be6b 100644 --- a/plan/plan.go +++ b/plan/plan.go @@ -186,6 +186,9 @@ func shouldUpdateTTL(desired, current *endpoint.Endpoint) bool { } func shouldUpdateProviderSpecific(desired, current *endpoint.Endpoint) bool { + if current.ProviderSpecific == nil && len(desired.ProviderSpecific) == 0 { + return false + } for _, c := range current.ProviderSpecific { // don't consider target health when detecting changes // see: https://github.com/kubernetes-incubator/external-dns/issues/869#issuecomment-458576954