From 9c9754ed5472300cf5a48d2e924bc12fa3befa09 Mon Sep 17 00:00:00 2001 From: Maciej Szulik Date: Thu, 28 Jan 2021 10:43:10 +0100 Subject: [PATCH] Bug 1921281: remove --export flag from oc --- ...templates-create-from-existing-object.adoc | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/modules/templates-create-from-existing-object.adoc b/modules/templates-create-from-existing-object.adoc index 70240ab2d3dd..7f79081815e7 100644 --- a/modules/templates-create-from-existing-object.adoc +++ b/modules/templates-create-from-existing-object.adoc @@ -11,23 +11,28 @@ adding parameters and other customizations as template form. .Procedure -. Export objects in a project in YAML form: +* Export objects in a project in YAML form: + [source,terminal] ---- -$ oc get -o yaml --export all > +$ oc get -o yaml all > ---- + You can also substitute a particular resource type or multiple resources instead of `all`. Run `oc get -h` for more examples. + -The object types included in `oc get --export all` are: +The object types included in `oc get -o yaml all` are: + -* BuildConfig -* Build -* DeploymentConfig -* ImageStream -* Pod -* ReplicationController -* Route -* Service +** `BuildConfig` +** `Build` +** `DeploymentConfig` +** `ImageStream` +** `Pod` +** `ReplicationController` +** `Route` +** `Service` + +[NOTE] +==== +Using the `all` alias is not recommended because the contents might vary across different clusters and versions. Instead, specify all required resources. +====