#!/bin/bash
-# Copyright (c) 2018 Cisco and/or its affiliates.
+# Copyright (c) 2021 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
kubectl delete node $HOSTNAME
# Revert any changes made to this host by 'kubeadm init' or 'kubeadm join'
- sudo kubeadm reset && sudo rm -rf $HOME/.kube || \
+ sudo kubeadm reset --force && sudo rm -rf $HOME/.kube || \
{ echo "Failed to reset kubeadm"; exit 1; }
}