def undeploy(ctx):
"""Removes OpenShift from the cluster."""
print("Preparing to remove OpenShift...")
if not ctx.init_with_checks():
print("Failed cursory checks, exiting.")
exit(1)
if ctx.auto_confirm:
print("Auto confirm (-y) option set, clearing existing installation.")
else:
print("Really consider the decision you're about to make.")
if not click.confirm("Do you want to clear the existing installation?"):
print("Okay, cancelling.")
exit(1)
ctx.delete_namespace_byname("openshift-origin")
print("Note: namespaces with openshift finalizer will need to be manually deleted if desired.")
print("See: https://github.com/paralin/openshift-under-kubernetes/blob/master/REMOVING_OPENSHIFT.md")
评论列表
文章目录