mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-12 06:38:11 +00:00
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:
parent
4f851abf3a
commit
55d27b3176
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user