You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/content/en/docs/best-practices/designing-lean-operators.md
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -14,37 +14,37 @@ Requests to a client backed by a filtered cache for objects that do not match th
14
14
15
15
## How is this done ?
16
16
17
-
- When creating the manager, you can override the default NewCache function
17
+
- When creating the manager, you can add an Options struct to configure the Cache
18
18
- Each client.Object can be filtered with labels and fields
19
19
20
20
## Examples
21
21
22
-
In this scenario, the user will override the NewCache function to filter the secret object by it's label. This will return a filtered cache for objects that match the filter.
22
+
In this scenario, the user will configure the Cache to filter the secret object by it's label. This will return a filtered cache for objects that match the filter.
In this scenario, the user will override the NewCache function to filter the node object by it's field name. This will return a filtered cache for objects that match the filter.
36
+
In this scenario, the user will configure the Cache to filter the node object by it's field name. This will return a filtered cache for objects that match the filter.
0 commit comments