From 8862ee0d0ddbc9225602c03206c2c8d0f1bdf90f Mon Sep 17 00:00:00 2001 From: Jake Conkerton-Darby Date: Tue, 3 Sep 2024 14:11:18 +0100 Subject: [PATCH] CH-144 Add 10 minute timeout to skaffold template --- deployment-configuration/skaffold-template.yaml | 2 ++ tools/deployment-cli-tools/tests/test_skaffold.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/deployment-configuration/skaffold-template.yaml b/deployment-configuration/skaffold-template.yaml index 8c7b346ce..6331c4d8b 100644 --- a/deployment-configuration/skaffold-template.yaml +++ b/deployment-configuration/skaffold-template.yaml @@ -13,6 +13,8 @@ deploy: flags: upgrade: - --install + install: + - --timeout=10m releases: - name: null chartPath: deployment/helm diff --git a/tools/deployment-cli-tools/tests/test_skaffold.py b/tools/deployment-cli-tools/tests/test_skaffold.py index 17c0832d3..999ad6396 100644 --- a/tools/deployment-cli-tools/tests/test_skaffold.py +++ b/tools/deployment-cli-tools/tests/test_skaffold.py @@ -104,6 +104,10 @@ def test_create_skaffold_configuration(): assert len(sk['test'][1]['custom']) == 2 + flags = sk['deploy']['helm']['flags'] + assert '--timeout=10m' in flags['install'] + assert '--install' in flags['upgrade'] + shutil.rmtree(OUT) shutil.rmtree(BUILD_DIR)