| // NOTE use params or directule extraHelmFlags?? |
| def cfg = defaultConfig + config |
| def volthaInfraChart = "onf/voltha-infra" |
| volthaInfraChart = "$WORKSPACE/voltha-helm-charts/voltha-infra" |
| pushd $WORKSPACE/voltha-helm-charts/voltha-infra |
| println "Deploying VOLTHA Infra with the following parameters: ${cfg}." |
| kubectl create namespace ${cfg.infraNamespace} || true |
| kubectl create configmap -n ${cfg.infraNamespace} kube-config "--from-file=kube_config=$KUBECONFIG" || true |
| // TODO support multiple replicas |
| helm upgrade --install --create-namespace -n ${cfg.infraNamespace} voltha-infra ${volthaInfraChart} \ |
| --set onos-classic.replicas=${cfg.onosReplica},onos-classic.atomix.replicas=${cfg.atomixReplica} \ |
| -f $WORKSPACE/voltha-helm-charts/examples/${cfg.workflow}-values.yaml ${cfg.extraHelmFlags} |