Skip to content

Commit ff536e1

Browse files
committed
doc/spec: use --field-manager in kubectl examples
To align with: https://fluxcd.io/docs/faq/#why-are-kubectl-edits-rolled-back-by-flux Signed-off-by: Hidde Beydals <[email protected]>
1 parent abf29da commit ff536e1

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

docs/spec/v1beta2/buckets.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ the last value the controller acted on, as reported in
637637
Using `kubectl`:
638638

639639
```sh
640-
kubectl annotate --overwrite bucket/<bucket-name> reconcile.fluxcd.io/requestedAt="$(date +%s)"
640+
kubectl annotate --field-manager=flux-client-side-apply --overwrite bucket/<bucket-name> reconcile.fluxcd.io/requestedAt="$(date +%s)"
641641
```
642642

643643
Using `flux`:
@@ -678,7 +678,7 @@ spec:
678678
Using `kubectl`:
679679

680680
```sh
681-
kubectl patch bucket <bucket-name> -p '{\"spec\": {\"suspend\" : true }}'
681+
kubectl patch bucket <bucket-name> --field-manager=flux-client-side-apply -p '{\"spec\": {\"suspend\" : true }}'
682682
```
683683

684684
Using `flux`:
@@ -714,7 +714,7 @@ state in Git.
714714
Using `kubectl`:
715715

716716
```sh
717-
kubectl patch bucket <bucket-name> -p '{\"spec\" : {\"suspend\" : false }}'
717+
kubectl patch bucket <bucket-name> --field-manager=flux-client-side-apply -p '{\"spec\" : {\"suspend\" : false }}'
718718
```
719719

720720
Using `flux`:

docs/spec/v1beta2/gitrepositories.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ from the last value the controller acted on, as reported in
492492
Using `kubectl`:
493493

494494
```sh
495-
kubectl annotate --overwrite gitrepository/<repository-name> reconcile.fluxcd.io/requestedAt="$(date +%s)"
495+
kubectl annotate --field-manager=flux-client-side-apply --overwrite gitrepository/<repository-name> reconcile.fluxcd.io/requestedAt="$(date +%s)"
496496
```
497497

498498
Using `flux`:
@@ -533,7 +533,7 @@ spec:
533533
Using `kubectl`:
534534

535535
```sh
536-
kubectl patch gitrepository <repository-name> -p '{\"spec\": {\"suspend\" : true }}'
536+
kubectl patch gitrepository <repository-name> --field-manager=flux-client-side-apply -p '{\"spec\": {\"suspend\" : true }}'
537537
```
538538

539539
Using `flux`:
@@ -569,7 +569,7 @@ state in Git.
569569
Using `kubectl`:
570570

571571
```sh
572-
kubectl patch gitrepository <repository-name> -p '{\"spec\" : {\"suspend\" : false }}'
572+
kubectl patch gitrepository <repository-name> --field-manager=flux-client-side-apply -p '{\"spec\" : {\"suspend\" : false }}'
573573
```
574574

575575
Using `flux`:

docs/spec/v1beta2/helmcharts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ the last value the controller acted on, as reported in
248248
Using `kubectl`:
249249

250250
```sh
251-
kubectl annotate --overwrite helmchart/<chart-name> reconcile.fluxcd.io/requestedAt="$(date +%s)"
251+
kubectl annotate --field-manager=flux-client-side-apply --overwrite helmchart/<chart-name> reconcile.fluxcd.io/requestedAt="$(date +%s)"
252252
```
253253

254254
### Waiting for `Ready`
@@ -283,7 +283,7 @@ spec:
283283
Using `kubectl`:
284284

285285
```sh
286-
kubectl patch helmchart <chart-name> -p '{\"spec\": {\"suspend\" : true }}'
286+
kubectl patch helmchart <chart-name> --field-manager=flux-client-side-apply -p '{\"spec\": {\"suspend\" : true }}'
287287
```
288288

289289
**Note:** When a HelmChart has an Artifact and is suspended, and this
@@ -313,7 +313,7 @@ state in Git.
313313
Using `kubectl`:
314314

315315
```sh
316-
kubectl patch helmchart <chart-name> -p '{\"spec\" : {\"suspend\" : false }}'
316+
kubectl patch helmchart <chart-name> --field-manager=flux-client-side-apply -p '{\"spec\" : {\"suspend\" : false }}'
317317
```
318318

319319
### Debugging a HelmChart

docs/spec/v1beta2/helmrepositories.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ the last value the controller acted on, as reported in
218218
Using `kubectl`:
219219

220220
```sh
221-
kubectl annotate --overwrite helmrepository/<repository-name> reconcile.fluxcd.io/requestedAt="$(date +%s)"
221+
kubectl annotate --field-manager=flux-client-side-apply --overwrite helmrepository/<repository-name> reconcile.fluxcd.io/requestedAt="$(date +%s)"
222222
```
223223

224224
Using `flux`:
@@ -259,7 +259,7 @@ spec:
259259
Using `kubectl`:
260260

261261
```sh
262-
kubectl patch helmrepository <repository-name> -p '{\"spec\": {\"suspend\" : true }}'
262+
kubectl patch helmrepository <repository-name> --field-manager=flux-client-side-apply -p '{\"spec\": {\"suspend\" : true }}'
263263
```
264264

265265
Using `flux`:
@@ -295,7 +295,7 @@ state in Git.
295295
Using `kubectl`:
296296

297297
```sh
298-
kubectl patch helmrepository <repository-name> -p '{\"spec\" : {\"suspend\" : false }}'
298+
kubectl patch helmrepository <repository-name> --field-manager=flux-client-side-apply -p '{\"spec\" : {\"suspend\" : false }}'
299299
```
300300

301301
Using `flux`:

0 commit comments

Comments
 (0)