File tree Expand file tree Collapse file tree 2 files changed +5
-15
lines changed
approval-controller-metric-collector
approval-request-controller/charts/approval-request-controller/templates Expand file tree Collapse file tree 2 files changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -237,11 +237,11 @@ You can create staged updates using either cluster-scoped or namespace-scoped re
237237Switch back to hub cluster and create a cluster-scoped staged update run:
238238
239239``` bash
240+ cd ../approval-request-controller
241+
240242# Switch to hub cluster
241243kubectl config use-context kind-hub
242244
243- cd ../approval-request-controller
244-
245245# Apply ClusterStagedUpdateStrategy
246246kubectl apply -f ./examples/updateRun/example-csus.yaml
247247
@@ -278,10 +278,10 @@ example-cluster-staged-run example-crp 0 0
278278Alternatively, you can use namespace-scoped resources:
279279
280280``` bash
281+ cd ../approval-request-controller
282+
281283# Switch to hub cluster
282284kubectl config use-context kind-hub
283-
284- cd ../approval-request-controller
285285```
286286
287287``` bash
@@ -302,16 +302,6 @@ proemetheus-crp 1 True 1 True 1
302302# Apply StagedUpdateStrategy
303303kubectl apply -f ./examples/updateRun/example-sus.yaml
304304
305- # Verify SUS is created
306- kubectl get sus -A
307- ```
308-
309- Output:
310- ``` bash
311- NAMESPACE NAME AGE
312- test-ns example-staged-strategy 4s
313- ```
314-
315305` ` ` bash
316306# Apply ResourcePlacement
317307kubectl apply -f ./examples/updateRun/example-rp.yaml
Original file line number Diff line number Diff line change 4242
4343 # WorkloadTracker (our custom resource)
4444 - apiGroups : ["metric.kubernetes-fleet.io"]
45- resources : ["clusterstagedworkloadtrackers, stagedworkloadtrackers"]
45+ resources : ["clusterstagedworkloadtrackers", " stagedworkloadtrackers"]
4646 verbs : ["get", "list", "watch"]
4747
4848 # Events
You can’t perform that action at this time.
0 commit comments