From 754ec71d6ebef212786b86aaafa0f6bf1a299cd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BE=84=E6=BD=AD?= Date: Tue, 24 Oct 2023 11:44:52 +0800 Subject: [PATCH] cds use fallback cluster (#600) --- .../patches/istio/20231024-cds-add-fallback.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 istio/1.12/patches/istio/20231024-cds-add-fallback.patch diff --git a/istio/1.12/patches/istio/20231024-cds-add-fallback.patch b/istio/1.12/patches/istio/20231024-cds-add-fallback.patch new file mode 100644 index 000000000..1c917888e --- /dev/null +++ b/istio/1.12/patches/istio/20231024-cds-add-fallback.patch @@ -0,0 +1,13 @@ +diff -Naur istio/pilot/pkg/model/push_context.go istio-new/pilot/pkg/model/push_context.go +--- istio/pilot/pkg/model/push_context.go 2023-10-24 10:55:51.000000000 +0800 ++++ istio-new/pilot/pkg/model/push_context.go 2023-10-20 17:00:06.000000000 +0800 +@@ -704,6 +704,9 @@ + if r.Destination != nil { + out = append(out, r.Destination.Host) + } ++ for _, d := range r.FallbackClusters { ++ out = append(out, d.Host) ++ } + } + if h.Mirror != nil { + out = append(out, h.Mirror.Host)