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: docs/book/src/developer/providers/v1alpha3-to-v1alpha4.md
+25-1
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ Provider's `/config` folder has the same structure of `/config` folder in CAPI
80
80
- ../manager
81
81
```
82
82
- Remove the `patchesStrategicMerge` list
83
-
- Copy the `vars` list into a temporary file to be used later in the process
83
+
- Copy the `vars` list into a temporary file to be used later in the process
84
84
- Remove the `vars` list
85
85
1. Edit the `config/webhook/kustomizeconfig.yaml` file:
86
86
- In the `varReference:` list, remove the item with `kind: Deployment`
@@ -181,3 +181,27 @@ with `cert-manager.io/v1`
181
181
group: cert-manager.io
182
182
version: v1
183
183
```
184
+
## Support the cluster.x-k8s.io/watch-filter label and watch-filter flag.
185
+
186
+
- A new label `cluster.x-k8s.io/watch-filter` provides the ability to filter the controllers to only reconcile objects with a specific label.
187
+
- A new flag `watch-filter` enables users to specify the label value for the `cluster.x-k8s.io/watch-filter` label on controller boot.
188
+
- The flag which enables users to set the flag value can be structured like this:
189
+
```go
190
+
fs.StringVar(&watchFilterValue, "watch-filter", "", fmt.Sprintf("Label value that the controller watches to reconcile cluster-api objects. Label key is always %s. If unspecified, the controller watches for all cluster-api objects.", clusterv1.WatchLabel))
191
+
```
192
+
- The `ResourceNotPausedAndHasFilterLabel` predicate is a useful helper to check for the pause annotation and the filter label easily:
"Namespace that the controller watches to reconcile cluster-api objects. If unspecified, the controller watches for cluster-api objects across all namespaces.")
fmt.Sprintf("Label value that the controller watches to reconcile cluster-api objects. Label key is always %s. If unspecified, the controller watches for all cluster-api objects.", clusterv1.WatchLabel))
0 commit comments