Skip to content

Commit 97186f6

Browse files
authored
Merge pull request #28943 from bergerhoffer/pr-28907
Bug 1921281: remove --export flag from oc
2 parents 5568c6c + 9c9754e commit 97186f6

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

modules/templates-create-from-existing-object.adoc

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,28 @@ adding parameters and other customizations as template form.
1111

1212
.Procedure
1313

14-
. Export objects in a project in YAML form:
14+
* Export objects in a project in YAML form:
1515
+
1616
[source,terminal]
1717
----
18-
$ oc get -o yaml --export all > <yaml_filename>
18+
$ oc get -o yaml all > <yaml_filename>
1919
----
2020
+
2121
You can also substitute a particular resource type or multiple resources instead of `all`.
2222
Run `oc get -h` for more examples.
2323
+
24-
The object types included in `oc get --export all` are:
24+
The object types included in `oc get -o yaml all` are:
2525
+
26-
* BuildConfig
27-
* Build
28-
* DeploymentConfig
29-
* ImageStream
30-
* Pod
31-
* ReplicationController
32-
* Route
33-
* Service
26+
** `BuildConfig`
27+
** `Build`
28+
** `DeploymentConfig`
29+
** `ImageStream`
30+
** `Pod`
31+
** `ReplicationController`
32+
** `Route`
33+
** `Service`
34+
35+
[NOTE]
36+
====
37+
Using the `all` alias is not recommended because the contents might vary across different clusters and versions. Instead, specify all required resources.
38+
====

0 commit comments

Comments
 (0)