Skip to content

Conversation

ChuanFF
Copy link

@ChuanFF ChuanFF commented Aug 12, 2025

Description

endpointslices have apigroup discovery.k8s.io, reference: https://kubernetes.io/docs/reference/kubernetes-api/service-resources/endpoint-slice-v1/
current clusterRole declaration will lead 403 error when list-watch endpointslices

Which issue(s) this PR fixes:

Fixes #

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)

fix endpointSlices token yaml declaration of document
fix endpointSlices token yaml declaration of document
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. doc Documentation things labels Aug 12, 2025
Comment on lines +321 to +324
resources: [ endpoints ]
verbs: [ get,list,watch ]
- apiGroups: [ "discovery.k8s.io" ]
resources: [ endpointslices ]
Copy link
Member

Choose a reason for hiding this comment

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

@ChuanFF Based on the documentation, this feature only reached stable status in Kubernetes v1.21.

Did the original documentation work correctly in older versions?

@Baoyuantop
Copy link
Contributor

Hi @ChuanFF, thanks for your contribution, this modification already exists in #11654

@ChuanFF ChuanFF closed this Aug 13, 2025
@SkyeYoung
Copy link
Member

@ChuanFF Thank you for your contribution, you can also choose to assist in reviewing #11654 to help improve the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Documentation things size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants