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

Add selectableFields to NodeMaintenance #17

Open
adrianchiris opened this issue Aug 26, 2024 · 0 comments
Open

Add selectableFields to NodeMaintenance #17

adrianchiris opened this issue Aug 26, 2024 · 0 comments

Comments

@adrianchiris
Copy link
Collaborator

What would you like to be added?

in k8s 1.31 selectableFields for CRD was promoted to stable[1]
once controller tools support selectable fields [2] we should use the defined markers to add the following selectable fields to NodeMaintenance CRD:

spec:
  selectableFields:
  - jsonPath: .spec.requestorID
  - jsonPath: .spec.nodeName

this will allow to list NodeMaintenance by requestorID and nodeName.

[1] https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#crd-selectable-fields
[2] kubernetes-sigs/controller-tools#1039

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

No branches or pull requests

1 participant