Skip to content

Commit f3ea6d5

Browse files
author
Arvind Thirumurugan
committed
minor fixes
Signed-off-by: Arvind Thirumurugan <arvindth@microsoft.com>
1 parent fc87b21 commit f3ea6d5

File tree

2 files changed

+5
-15
lines changed
  • approval-controller-metric-collector
    • approval-request-controller/charts/approval-request-controller/templates

2 files changed

+5
-15
lines changed

approval-controller-metric-collector/README.md

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,11 @@ You can create staged updates using either cluster-scoped or namespace-scoped re
237237
Switch 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
241243
kubectl config use-context kind-hub
242244

243-
cd ../approval-request-controller
244-
245245
# Apply ClusterStagedUpdateStrategy
246246
kubectl apply -f ./examples/updateRun/example-csus.yaml
247247

@@ -278,10 +278,10 @@ example-cluster-staged-run example-crp 0 0
278278
Alternatively, you can use namespace-scoped resources:
279279

280280
```bash
281+
cd ../approval-request-controller
282+
281283
# Switch to hub cluster
282284
kubectl 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
303303
kubectl 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
317307
kubectl apply -f ./examples/updateRun/example-rp.yaml

approval-controller-metric-collector/approval-request-controller/charts/approval-request-controller/templates/rbac.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ rules:
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

0 commit comments

Comments
 (0)