Skip to content

Commit

Permalink
Merge "voltctl: update ingress configuration after redeployment in be…
Browse files Browse the repository at this point in the history
…rlin-lab"
  • Loading branch information
ideaship authored and Gerrit Code Review committed Nov 15, 2024
2 parents 8d29eb1 + b478928 commit 53c2e33
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions jjb/pipeline/voltha/physical-build.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ pipeline {
installVoltctl("${branch}")

sh """
sed -i -e "s/server: .*/server: voltha-${cluster}:443/" \
-e "s/kvstore: .*/kvstore: voltha-infra-${cluster}:443/" \
sed -i -e "s/server: .*/server: voltha.${cluster}:443/" \
-e "s/kvstore: .*/kvstore: voltha-infra.${cluster}:443/" \
/home/jenkins/.volt/config
"""

Expand Down Expand Up @@ -183,6 +183,7 @@ pipeline {
bbsimReplica: bbsimReplicas.toInteger(),
withFttb: withFttb.toBoolean(),
adaptersToWait: numberOfAdaptersToWait,
cluster: cluster,
])

if(openoltAdapterChart != "onf/voltha-adapter-openolt"){
Expand Down
4 changes: 3 additions & 1 deletion vars/volthaInfraDeploy.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ void process(Map config) {
// location of the kubernetes config file,
// if null we assume it's stored in the $KUBECONFIG
kubeconfig: null,
cluster: 'local'
]

Map cfg = defaultConfig + config
Expand Down Expand Up @@ -145,7 +146,8 @@ kubectl create configmap -n ${cfg.infraNamespace} kube-config "--from-file=kube_
--set etcd.statefulset.replicaCount=${cfg.etcdReplica} \
--set etcd.replicaCount=${cfg.etcdReplica} \
--set etcd.ingress.enabled=true \
--set etcd.ingress.enableVirtualHosts=true \
--set etcd.ingress.hosts[0].host=voltha-infra.${cfg.cluster} \
--set etcd.ingress.hosts[0].paths[0]='/etcdserverpb.KV/' \
-f $WORKSPACE/voltha-helm-charts/examples/${serviceConfigFile}-values.yaml ${cfg.extraHelmFlags}
""")

Expand Down
4 changes: 3 additions & 1 deletion vars/volthaStackDeploy.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ helm upgrade --install --create-namespace \
--set global.voltha_infra_name=voltha-infra \
--set voltha.onos_classic.replicas=${cfg.onosReplica} \
--set voltha.ingress.enabled=true \
--set voltha.ingress.enableVirtualHosts=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}
""")
Expand Down Expand Up @@ -328,6 +329,7 @@ void process(Map config) {
localCharts: false,
onosReplica: 1,
adaptersToWait: 2,
cluster: 'voltha.local',
]

Map cfg = defaultConfig + config
Expand Down

0 comments on commit 53c2e33

Please sign in to comment.