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 <hello@hidde.co>
This commit is contained in:
Hidde Beydals 2022-03-09 12:44:29 +01:00
parent abf29da106
commit ff536e10bb
4 changed files with 12 additions and 12 deletions

View File

@ -637,7 +637,7 @@ the last value the controller acted on, as reported in
Using `kubectl`:
```sh
kubectl annotate --overwrite bucket/<bucket-name> reconcile.fluxcd.io/requestedAt="$(date +%s)"
kubectl annotate --field-manager=flux-client-side-apply --overwrite bucket/<bucket-name> reconcile.fluxcd.io/requestedAt="$(date +%s)"
```
Using `flux`:
@ -678,7 +678,7 @@ spec:
Using `kubectl`:
```sh
kubectl patch bucket <bucket-name> -p '{\"spec\": {\"suspend\" : true }}'
kubectl patch bucket <bucket-name> --field-manager=flux-client-side-apply -p '{\"spec\": {\"suspend\" : true }}'
```
Using `flux`:
@ -714,7 +714,7 @@ state in Git.
Using `kubectl`:
```sh
kubectl patch bucket <bucket-name> -p '{\"spec\" : {\"suspend\" : false }}'
kubectl patch bucket <bucket-name> --field-manager=flux-client-side-apply -p '{\"spec\" : {\"suspend\" : false }}'
```
Using `flux`:

View File

@ -492,7 +492,7 @@ from the last value the controller acted on, as reported in
Using `kubectl`:
```sh
kubectl annotate --overwrite gitrepository/<repository-name> reconcile.fluxcd.io/requestedAt="$(date +%s)"
kubectl annotate --field-manager=flux-client-side-apply --overwrite gitrepository/<repository-name> reconcile.fluxcd.io/requestedAt="$(date +%s)"
```
Using `flux`:
@ -533,7 +533,7 @@ spec:
Using `kubectl`:
```sh
kubectl patch gitrepository <repository-name> -p '{\"spec\": {\"suspend\" : true }}'
kubectl patch gitrepository <repository-name> --field-manager=flux-client-side-apply -p '{\"spec\": {\"suspend\" : true }}'
```
Using `flux`:
@ -569,7 +569,7 @@ state in Git.
Using `kubectl`:
```sh
kubectl patch gitrepository <repository-name> -p '{\"spec\" : {\"suspend\" : false }}'
kubectl patch gitrepository <repository-name> --field-manager=flux-client-side-apply -p '{\"spec\" : {\"suspend\" : false }}'
```
Using `flux`:

View File

@ -248,7 +248,7 @@ the last value the controller acted on, as reported in
Using `kubectl`:
```sh
kubectl annotate --overwrite helmchart/<chart-name> reconcile.fluxcd.io/requestedAt="$(date +%s)"
kubectl annotate --field-manager=flux-client-side-apply --overwrite helmchart/<chart-name> reconcile.fluxcd.io/requestedAt="$(date +%s)"
```
### Waiting for `Ready`
@ -283,7 +283,7 @@ spec:
Using `kubectl`:
```sh
kubectl patch helmchart <chart-name> -p '{\"spec\": {\"suspend\" : true }}'
kubectl patch helmchart <chart-name> --field-manager=flux-client-side-apply -p '{\"spec\": {\"suspend\" : true }}'
```
**Note:** When a HelmChart has an Artifact and is suspended, and this
@ -313,7 +313,7 @@ state in Git.
Using `kubectl`:
```sh
kubectl patch helmchart <chart-name> -p '{\"spec\" : {\"suspend\" : false }}'
kubectl patch helmchart <chart-name> --field-manager=flux-client-side-apply -p '{\"spec\" : {\"suspend\" : false }}'
```
### Debugging a HelmChart

View File

@ -218,7 +218,7 @@ the last value the controller acted on, as reported in
Using `kubectl`:
```sh
kubectl annotate --overwrite helmrepository/<repository-name> reconcile.fluxcd.io/requestedAt="$(date +%s)"
kubectl annotate --field-manager=flux-client-side-apply --overwrite helmrepository/<repository-name> reconcile.fluxcd.io/requestedAt="$(date +%s)"
```
Using `flux`:
@ -259,7 +259,7 @@ spec:
Using `kubectl`:
```sh
kubectl patch helmrepository <repository-name> -p '{\"spec\": {\"suspend\" : true }}'
kubectl patch helmrepository <repository-name> --field-manager=flux-client-side-apply -p '{\"spec\": {\"suspend\" : true }}'
```
Using `flux`:
@ -295,7 +295,7 @@ state in Git.
Using `kubectl`:
```sh
kubectl patch helmrepository <repository-name> -p '{\"spec\" : {\"suspend\" : false }}'
kubectl patch helmrepository <repository-name> --field-manager=flux-client-side-apply -p '{\"spec\" : {\"suspend\" : false }}'
```
Using `flux`: