Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(k8s): watch_endpoint_slices_schema should be watch_endpoint_slices #11000

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

paradin
Copy link

@paradin paradin commented Mar 6, 2024

config watch_endpoint_slices not watch_endpoint_slices_schema

Description

Fixes # (issue)

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

config watch_endpoint_slices  not watch_endpoint_slices_schema
@monkeyDluffy6017 monkeyDluffy6017 changed the title Update init.lua fix: Update init.lua Mar 6, 2024
@monkeyDluffy6017 monkeyDluffy6017 changed the title fix: Update init.lua fix(k8s): watch_endpoint_slices_schema should be watch_endpoint_slices Mar 6, 2024
@monkeyDluffy6017
Copy link
Contributor

Can we add test cases to cover this?

@nitishfy
Copy link

@paradin are you still available to work on this?

@@ -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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if conf.watch_endpoint_slices then
if conf.watch_endpoint_slices then

I don't understand why would you need that? What is the problem it is trying to solve here?

Copy link

@nitishfy nitishfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no issue linked to this PR and IMO it's not solving any problem so far. I'm not sure why would you want to change the name? Can you help me here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants