Skip to content

Commit

Permalink
Remove deprecated oc adm drain option
Browse files Browse the repository at this point in the history
Fixes ocp-power-automation#487

Signed-off-by: Yussuf Shaikh <yussuf.shaikh1@ibm.com>
  • Loading branch information
yussufsh committed Jul 18, 2023
1 parent be1b13a commit a9f9131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/4_nodes/nodes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ resource "null_resource" "remove_worker" {
on_failure = continue
inline = [<<EOF
oc adm cordon ${self.triggers.node_prefix}worker-${count.index}.${self.triggers.cluster_id}.${self.triggers.cluster_domain}
oc adm drain ${self.triggers.node_prefix}worker-${count.index}.${self.triggers.cluster_id}.${self.triggers.cluster_domain} --force --delete-local-data --ignore-daemonsets --timeout=180s
oc adm drain ${self.triggers.node_prefix}worker-${count.index}.${self.triggers.cluster_id}.${self.triggers.cluster_domain} --force --delete-emptydir-data --ignore-daemonsets --timeout=100s
oc delete node ${self.triggers.node_prefix}worker-${count.index}.${self.triggers.cluster_id}.${self.triggers.cluster_domain}
EOF
]
Expand Down

0 comments on commit a9f9131

Please sign in to comment.