Skip to content

Commit 179b3ca

Browse files
authored
Merge pull request #24219 from tomaslm/patch-1
Update dry-run flag
2 parents 8eb2e6c + f24bf6f commit 179b3ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/en/docs/reference/kubectl/conventions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ For `kubectl run` to satisfy infrastructure as code:
2929
* Check in the script for an image that is heavily parameterized.
3030
* Switch to configuration files checked into source control for features that are needed, but not expressible via `kubectl run` flags.
3131

32-
You can use the `--dry-run` flag to preview the object that would be sent to your cluster, without really submitting it.
32+
You can use the `--dry-run=client` flag to preview the object that would be sent to your cluster, without really submitting it.
3333

3434
{{< note >}}
3535
All `kubectl` generators are deprecated. See the Kubernetes v1.17 documentation for a [list](https://v1-17.docs.kubernetes.io/docs/reference/kubectl/conventions/#generators) of generators and how they were used.
3636
{{< /note >}}
3737

3838
#### Generators
39-
You can generate the following resources with a kubectl command, `kubectl create --dry-run -o yaml`:
39+
You can generate the following resources with a kubectl command, `kubectl create --dry-run=client -o yaml`:
4040
```
4141
clusterrole Create a ClusterRole.
4242
clusterrolebinding Create a ClusterRoleBinding for a particular ClusterRole.

0 commit comments

Comments
 (0)