aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-minimal-onap
diff options
context:
space:
mode:
authorPawel Wieczorek <p.wieczorek2@samsung.com>2020-06-09 09:33:58 +0200
committerPawel Wieczorek <p.wieczorek2@samsung.com>2020-06-12 07:24:29 +0200
commita27c3ff06f1f06338044ad69f49e64c6f8c5ef04 (patch)
treebbc32bbc453bcdf4ecadc64e7b1a2a81e9f005ee /bootstrap/vagrant-minimal-onap
parent0794e6795a7ad5fbbd986d1049234e013289d033 (diff)
Make Helm timeout adjustable on Vagrant-based minimal ONAP deployment
Issue-ID: ONAPARC-551 Change-Id: I3c1157e65fd63c73b3d8319bd7d8650593953f33 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Diffstat (limited to 'bootstrap/vagrant-minimal-onap')
-rw-r--r--bootstrap/vagrant-minimal-onap/Vagrantfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/bootstrap/vagrant-minimal-onap/Vagrantfile b/bootstrap/vagrant-minimal-onap/Vagrantfile
index 5f9a725cc..74c98a4fd 100644
--- a/bootstrap/vagrant-minimal-onap/Vagrantfile
+++ b/bootstrap/vagrant-minimal-onap/Vagrantfile
@@ -13,6 +13,7 @@ os_env = "#{synced_folder_config}/dot_env"
cluster_yml = "cluster.yml"
apt_prefs_dir = "/etc/apt/apt.conf.d"
apt_prefs = "95silent-approval"
+helm_timeout = "900"
vm_memory = 1 * 1024
vm_memory_os = 4 * 1024
@@ -183,6 +184,8 @@ $deploy_onap = <<-SCRIPT
ENV="${2:-#{os_env}}"
export $(cat "$ENV" | xargs)
+ TIMEOUT="${3:-#{helm_timeout}}"
+
encrypt () {
KEY="${HOME}/oom/kubernetes/so/resources/config/mso/encryption.key"
echo -n "$1" \
@@ -194,7 +197,7 @@ $deploy_onap = <<-SCRIPT
export KUBECONFIG="${HOME}/.kube/config.onap"
- helm deploy core local/onap --namespace onap -f "$OVERRIDE" --verbose --timeout 900
+ helm deploy core local/onap --namespace onap -f "$OVERRIDE" --verbose --timeout "$TIMEOUT"
SCRIPT
Vagrant.configure('2') do |config|