-
Notifications
You must be signed in to change notification settings - Fork 110
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
Update policy resources with list examples #1361
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -187,3 +187,23 @@ Application layer policy match criteria are supported with the following restric | |||||||||||||||||||||||||||||||
| Datastore type | Create/Delete | Update | Get/List | Notes | | ||||||||||||||||||||||||||||||||
| ------------------------ | ------------- | ------ | -------- | ----- | | ||||||||||||||||||||||||||||||||
| Kubernetes API datastore | Yes | Yes | Yes | | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
#### List filtering on tiers | ||||||||||||||||||||||||||||||||
List and Watch operations may specify label selector or field selector to filter GlobalNetworkPolicies on tiers returned by the API server. | ||||||||||||||||||||||||||||||||
When no selector is specified the API server returns all GlobalNetworkPolicies from all tiers that the user has access to. | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
##### Field selector | ||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add newline after heading. |
||||||||||||||||||||||||||||||||
When using the field selector, supported operators are = and == | ||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
Example to retrieve all GlobalNetworkPolicies in default tier: | ||||||||||||||||||||||||||||||||
``` | ||||||||||||||||||||||||||||||||
kubectl get globalnetworkpolicy --field-selector spec.tier=default | ||||||||||||||||||||||||||||||||
``` | ||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
##### Label selector | ||||||||||||||||||||||||||||||||
When using the label selector, supported operators are =, == and IN | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
Example to retrieve all GlobalNetworkPolicies in default and net-sec tier: | ||||||||||||||||||||||||||||||||
``` | ||||||||||||||||||||||||||||||||
kubectl get globalnetworkpolicy -l 'projectcalico.org/tier in (default, net-sec)' | ||||||||||||||||||||||||||||||||
``` | ||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
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.