Skip to content

fix: allow for large shared_size in kubernetes discovery#12123

Merged
moonming merged 1 commit intoapache:masterfrom
Revolyssup:revolyssup/fixk8schema
Apr 5, 2025
Merged

fix: allow for large shared_size in kubernetes discovery#12123
moonming merged 1 commit intoapache:masterfrom
Revolyssup:revolyssup/fixk8schema

Conversation

@Revolyssup
Copy link
Contributor

Fixes #11857
Currently due to schema validation limitation, setting higher shared_size results in following error

nginx: [error] init_by_lua error: /home/ashish/dev/apisix/apisix/core.lua:21: failed to parse yaml config: invalid discovery kubernetes configuration: object matches none of the required
stack traceback:

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)

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. bug Something isn't working labels Apr 4, 2025
@moonming moonming merged commit ee6f6db into apache:master Apr 5, 2025
30 checks passed
laz-xyr pushed a commit to laz-xyr/apisix that referenced this pull request Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: k8s服务发现discovery参数shared_size 调整为100m报错

4 participants