Skip to content

Commit

Permalink
fix test of ProviderSpecific comparison
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Hohertz <[email protected]>
  • Loading branch information
Joe Hohertz committed Feb 8, 2019
1 parent 2fba8cf commit 8b1c157
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plan/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b1c157

Please sign in to comment.