You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/reference/kubectl/conventions.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,14 +29,14 @@ For `kubectl run` to satisfy infrastructure as code:
29
29
* Check in the script for an image that is heavily parameterized.
30
30
* Switch to configuration files checked into source control for features that are needed, but not expressible via `kubectl run` flags.
31
31
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.
33
33
34
34
{{< note >}}
35
35
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.
36
36
{{< /note >}}
37
37
38
38
#### 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`:
40
40
```
41
41
clusterrole Create a ClusterRole.
42
42
clusterrolebinding Create a ClusterRoleBinding for a particular ClusterRole.
0 commit comments