From c5d175ceba49411d92402855fe638f9d94e003af Mon Sep 17 00:00:00 2001 From: LynnLiu <47371559@163.com> Date: Wed, 6 Mar 2024 11:22:21 +0800 Subject: [PATCH] Update init.lua config watch_endpoint_slices not watch_endpoint_slices_schema --- apisix/discovery/kubernetes/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apisix/discovery/kubernetes/init.lua b/apisix/discovery/kubernetes/init.lua index 84c6ddbcb90e..fbb0718f2c0c 100644 --- a/apisix/discovery/kubernetes/init.lua +++ b/apisix/discovery/kubernetes/init.lua @@ -431,7 +431,7 @@ local function single_mode_init(conf) local default_weight = conf.default_weight local endpoints_informer, err - if conf.watch_endpoint_slices_schema then + if conf.watch_endpoint_slices then endpoints_informer, err = informer_factory.new("discovery.k8s.io", "v1", "EndpointSlice", "endpointslices", "") else @@ -445,7 +445,7 @@ local function single_mode_init(conf) setup_namespace_selector(conf, endpoints_informer) setup_label_selector(conf, endpoints_informer) - if conf.watch_endpoint_slices_schema then + if conf.watch_endpoint_slices then endpoints_informer.on_added = on_endpoint_slices_modified endpoints_informer.on_modified = on_endpoint_slices_modified else @@ -537,7 +537,7 @@ local function multiple_mode_init(confs) local default_weight = conf.default_weight local endpoints_informer, err - if conf.watch_endpoint_slices_schema then + if conf.watch_endpoint_slices then endpoints_informer, err = informer_factory.new("discovery.k8s.io", "v1", "EndpointSlice", "endpointslices", "") else @@ -551,7 +551,7 @@ local function multiple_mode_init(confs) setup_namespace_selector(conf, endpoints_informer) setup_label_selector(conf, endpoints_informer) - if conf.watch_endpoint_slices_schema then + if conf.watch_endpoint_slices then endpoints_informer.on_added = on_endpoint_slices_modified endpoints_informer.on_modified = on_endpoint_slices_modified else