mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-30 03:34:29 +01: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user