deploy: Allow container to restart gracefully

If the container has had to restart, lack of overwrite here causes a benign error message to appear since the nodes already have `katacontainers.io/kata-runtime=true` label. Having a overwrite here means that we don't get the following error message:

    error: 'katacontainers.io/kata-runtime' already has a value (true), and --overwrite is false

Signed-off-by: Bharat Kunwar <b.kunwar@gmail.com>
This commit is contained in:
Bharat Kunwar 2019-05-01 14:59:30 +01:00
parent 4f851abf3a
commit 55d27b3176

View File

@ -211,7 +211,7 @@ function main() {
install_artifacts
configure_cri_runtime $runtime
kubectl label node $NODE_NAME katacontainers.io/kata-runtime=true
kubectl label node $NODE_NAME --overwrite katacontainers.io/kata-runtime=true
;;
cleanup)
cleanup_cri_runtime $runtime