periodic-Voltha-combined_Inroduced_VGC_Pod_Bringup
Change-Id: Id3be7f70c8d64824fb67f8513d9be57dca775027
Signed-off-by: Guru <guruprasanna.st@radisys.com>
diff --git a/vars/volthaStackDeploy.groovy b/vars/volthaStackDeploy.groovy
index 22d63f6..89881d9 100644
--- a/vars/volthaStackDeploy.groovy
+++ b/vars/volthaStackDeploy.groovy
@@ -50,20 +50,35 @@
void deployVolthaStack(Map cfg) {
enter('deployVolthaStack')
- sh(label : "Create VOLTHA Stack ${cfg.stackName}, (namespace=${cfg.volthaNamespace})",
- script : """
-
+ if (cfg.vgcEnabled) {
+ sh(label: "Create VOLTHA Stack ${cfg.stackName}, (namespace=${cfg.volthaNamespace}), (flowController=VGC)",
+ script: """
helm upgrade --install --create-namespace \
-n ${cfg.volthaNamespace} ${cfg.stackName} ${cfg.volthaStackChart} \
--set global.stack_name=${cfg.stackName} \
--set global.voltha_infra_name=voltha-infra \
- --set voltha.onos_classic.replicas=${cfg.onosReplica} \
+ --set voltha-go-controller.enabled=true \
--set voltha.ingress.enabled=true \
--set voltha.ingress.hosts[0].host=voltha.${cfg.cluster} \
--set voltha.ingress.hosts[0].paths[0]='/voltha.VolthaService/' \
--set global.voltha_infra_namespace=${cfg.infraNamespace} \
${cfg.extraHelmFlags}
""")
+ } else {
+ sh(label: "Create VOLTHA Stack ${cfg.stackName}, (namespace=${cfg.volthaNamespace})",
+ script: """
+helm upgrade --install --create-namespace \
+ -n ${cfg.volthaNamespace} ${cfg.stackName} ${cfg.volthaStackChart} \
+ --set global.stack_name=${cfg.stackName} \
+ --set global.voltha_infra_name=voltha-infra \
+ --set voltha.onos_classic.replicas=${cfg.onosReplica} \
+ --set voltha.ingress.enabled=true \
+ --set voltha.ingress.hosts[0].host=voltha.${cfg.cluster} \
+ --set voltha.ingress.hosts[0].paths[0]='/voltha.VolthaService/' \
+ --set global.voltha_infra_namespace=${cfg.infraNamespace} \
+ ${cfg.extraHelmFlags}
+""")
+ }
for (int i = 0; i < cfg.bbsimReplica; i++) {
// NOTE we don't need to update the tag for DT
@@ -330,6 +345,7 @@
onosReplica: 1,
adaptersToWait: 2,
cluster: 'voltha.local',
+ vgcEnabled: 'false',
]
Map cfg = defaultConfig + config