Skip to content

Commit 859aab0

Browse files
authored
Merge pull request #7889 from ahardin-rh/PR7880-CP-ENT37
[enterprise-3.7] Added --dry-run option for oc adm drain for 3.7
2 parents 5867985 + 44be1c0 commit 859aab0

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

admin_guide/manage_nodes.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,13 @@ Alternatively, instead of specifying specific node names (e.g., `<node1>
267267
<node2>`), you can use the `--selector=<node_selector>` option to evacuate pods
268268
on selected nodes.
269269

270+
To list objects that will be migrated without actually performing the evacuation,
271+
use the `--dry-run` option and set it to `true`:
272+
273+
----
274+
$ oc adm drain <node1> <node2> --dry-run=true
275+
----
276+
270277
[[rebooting-nodes]]
271278
== Rebooting Nodes
272279

admin_guide/revhistory_admin_guide.adoc

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,22 @@
77
:experimental:
88

99
// do-release: revhist-tables
10+
11+
== Wed Feb 21 2018
12+
13+
// tag::admin_guide_wed_feb_21_2018[]
14+
[cols="1,3",options="header"]
15+
|===
16+
17+
|Affected Topic |Description of Change
18+
//Wed Feb 21 2018
19+
|xref:../admin_guide/manage_nodes.adoc#admin-guide-manage-nodes[Managing Nodes]
20+
|Added information about the `--dry-run` option for `oc adm drain`.
21+
22+
|===
23+
24+
// end::admin_guide_wed_feb_21_2018[]
25+
1026
== Fri Feb 16 2018
1127

1228
// tag::admin_guide_fri_feb_16_2018[]
@@ -104,4 +120,4 @@
104120
// end::admin_guide_fri_dec_22_2017[]
105121
== Wed Nov 29 2017
106122

107-
{product-title} {product-version} Initial Release
123+
{product-title} {product-version} Initial Release

welcome/revhistory_full.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ The following sections aggregate the revision histories of each guide by publish
1010
date.
1111

1212
// do-release: revhist-tables
13+
14+
== Wed Feb 21 2018
15+
.Cluster Administration
16+
include::admin_guide/revhistory_admin_guide.adoc[tag=admin_guide_wed_feb_21_2018]
17+
1318
== Fri Feb 16 2018
1419
.Using Images
1520
include::using_images/revhistory_using_images.adoc[tag=using_images_fri_feb_16_2018]

0 commit comments

Comments
 (0)