-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Blog entry for KEP-4358: Custom resource field selectors to GA #48374
base: main
Are you sure you want to change the base?
Blog entry for KEP-4358: Custom resource field selectors to GA #48374
Conversation
👷 Deploy Preview for kubernetes-io-vnext-staging processing.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nits identified.
/lgtm
content/en/blog/_posts/2024-XX-XX-Custom-Resource-Field-Selectors.md
Outdated
Show resolved
Hide resolved
content/en/blog/_posts/2024-XX-XX-Custom-Resource-Field-Selectors.md
Outdated
Show resolved
Hide resolved
content/en/blog/_posts/2024-XX-XX-Custom-Resource-Field-Selectors.md
Outdated
Show resolved
Hide resolved
LGTM label has been added. Git tree hash: dedf77e9e5bb4b7b2edb9e4ff1e7ccc55b6d2546
|
@jpbetz, |
New changes are detected. LGTM label has been removed. |
b7acd7b
to
6563855
Compare
Co-authored-by: Qiming Teng <[email protected]>
6563855
to
cf597b8
Compare
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
/hold This mustn't publish until release comms confirm it's OK, and that includes having the correct publication date. /lgtm cancel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR.
The title should typically mention the release that the announcement goes along with, and we recommend following key bits of the style guide (eg: headings in sentence case; use italics for terms)
So, custom resource field selectors not Custom Resource Field Selectors.
Also, avoid using “we“ unless it is obvious to readers who it refers to; for this one, you could reword the first paragraph to make that clear.
content/en/blog/_posts/2024-XX-XX-Custom-Resource-Field-Selectors.md
Outdated
Show resolved
Hide resolved
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
704ea7a
to
4ad4ad6
Compare
Thanks @sftim. Feedback applied. |
friendly nudge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jpbetz
- Please add
draft: true
to the article's front matter - Please set the publication date to Tuesday 11th December 2024 (we'll update that after it merges). This is a change to the article path in source and to the front matter.
content/en/blog/_posts/2024-XX-XX-Custom-Resource-Field-Selectors.md
Outdated
Show resolved
Hide resolved
content/en/blog/_posts/2024-XX-XX-Custom-Resource-Field-Selectors.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The announcement could be more about how to use the new feature (including a title change) and less about the graduation itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM. Done.
3f2c40a
to
a2ac99c
Compare
Thanks @sftim. Feedback applied. |
One more thing. The change to go.mod file in this PR was not intentional, right? |
a2ac99c
to
792c3e2
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks for noticing. I blame |
Update your CRD definition with the `selectableFields` section. This tells Kubernetes | ||
which fields you want to filter by. | ||
|
||
For example, let's say you have a `Shirt` CRD with color and size fields in the spec: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example, let's say you have a `Shirt` CRD with color and size fields in the spec: | |
For example, let's say you have a CustomResourceDefinition that defines a Shirt API. The Shirt API has | |
`color` and `size` fields in the object spec: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK to merge; I'd prefer to address several style and clarity nits.
|
||
# Here's how to use it | ||
|
||
## 1. Define Selectable Fields in your CRD: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## 1. Define Selectable Fields in your CRD: | |
## 1. Define selectable fields in your CustomResourceDefinition |
type: string | ||
``` | ||
|
||
## 2. Filter CRDs with `kubectl`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## 2. Filter CRDs with `kubectl`: | |
## 2. Filter custom resources using `kubectl` |
The `=` and `!=` operators are supported. | ||
|
||
```sh | ||
kubectl get shirts.stable.example.com --field-selector spec.color=blue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this works, I'd recommend it. The first .
helps show that it's a path
kubectl get shirts.stable.example.com --field-selector spec.color=blue | |
kubectl get shirts.stable.example.com --field-selector .spec.color=blue |
- **Reduced Redundancy**: Avoids the practice of duplicating data into labels. | ||
- **Improved Consistency**: Ensure data accuracy by filtering based on actual field values. | ||
- **Efficient Operations**: Utilize filtered informers in controllers for better resource reconciliation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(style nit)
- **Reduced Redundancy**: Avoids the practice of duplicating data into labels. | |
- **Improved Consistency**: Ensure data accuracy by filtering based on actual field values. | |
- **Efficient Operations**: Utilize filtered informers in controllers for better resource reconciliation. | |
- **Reduced redundancy**: Avoids the practice of duplicating data into labels. | |
- **Improved consistency**: Ensure data accuracy by filtering based on actual field values. | |
- **Efficient operations**: Utilize filtered informers in controllers for better resource reconciliation. |
|
||
## 1. Define Selectable Fields in your CRD: | ||
|
||
Update your CRD definition with the `selectableFields` section. This tells Kubernetes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update your CRD definition with the `selectableFields` section. This tells Kubernetes | |
Update an existing CustomResourceDefinition (CRD) to specify one or more `selectableFields`. This tells Kubernetes |
## 1. Define Selectable Fields in your CRD: | ||
|
||
Update your CRD definition with the `selectableFields` section. This tells Kubernetes | ||
which fields you want to filter by. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which fields you want to filter by. | |
which fields you want to let users filter by. |
|
||
Start filtering your CRDs with ease using custom resource field selectors in | ||
Kubernetes 1.32 and experience a more streamlined workflow. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe mention the downsides (if any) of allowing all fields to be used in field selectors?
@jpbetz , with 1.32 released, please change the target branch to |
Done |
/remove-milestone 1.32 |
No description provided.