From 55d27b317600b6ac2acd95546a3307b4a67678eb Mon Sep 17 00:00:00 2001 From: Bharat Kunwar Date: Wed, 1 May 2019 14:59:30 +0100 Subject: [PATCH] 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 --- kata-deploy/scripts/kata-deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kata-deploy/scripts/kata-deploy.sh b/kata-deploy/scripts/kata-deploy.sh index b3753ce2fb1e..c159a1eb6011 100755 --- a/kata-deploy/scripts/kata-deploy.sh +++ b/kata-deploy/scripts/kata-deploy.sh @@ -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