Skip to content

Commit

Permalink
voltctl: update config generation in physical build
Browse files Browse the repository at this point in the history
* add new parameter to voltha-test pipeline definitions for the
  cluster name
* after configuring the ingress on the clusters, the voltctl
  needs to point to the DNS names configured for the voltha and
  voltha-infra services.

Change-Id: Icaca9dc8dfed01887d98391bdb44adbad2775d68
Signed-off-by: Cristina de Francisco <[email protected]>
  • Loading branch information
cristina-defran committed Nov 14, 2024
1 parent 3f8548d commit 4760e99
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jjb/pipeline/voltha/physical-build.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ pipeline {
steps {
timeout(20) {
installVoltctl("${branch}")

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

script {
// if we're downloading a voltha-helm-charts patch, then install from a local copy of the charts
def localCharts = false
Expand Down
5 changes: 5 additions & 0 deletions jjb/voltha-test/voltha-nightly-jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@
default: '{config-pod}'
description: 'The config file'

- string:
name: cluster
default: '{cluster}'
description: 'Name of the cluster'

- string:
name: profile
default: '{profile}'
Expand Down
19 changes: 19 additions & 0 deletions jjb/voltha-test/voltha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
- 'build_voltha_pod_release_timer':
build-node: 'jenkins-worker-01.berlin-lab'
config-pod: 'berlin-community-pod-1-multi-olt'
cluster: 'pod-1.berlin-lab.lfbroadband.org'
disable-job: true
name-extension: '_DT'
work-flow: 'DT'
Expand All @@ -45,6 +46,7 @@
timeout: 360
build-node: 'jenkins-worker-01.berlin-lab'
config-pod: 'berlin-community-pod-1-multi-olt'
cluster: 'pod-1.berlin-lab.lfbroadband.org'
disable-job: true
release: 'master'
branch: 'master'
Expand All @@ -60,6 +62,7 @@
- 'build_voltha_pod_release_timer':
build-node: 'jenkins-worker-01.berlin-lab'
config-pod: 'berlin-community-pod-1-gpon'
cluster: 'pod-1.berlin-lab.lfbroadband.org'
disable-job: false
name-extension: '_DT'
work-flow: 'DT'
Expand All @@ -74,6 +77,7 @@
timeout: 330
build-node: 'jenkins-worker-01.berlin-lab'
config-pod: 'berlin-community-pod-1-gpon'
cluster: 'pod-1.berlin-lab.lfbroadband.org'
disable-job: false
name-extension: '_DT'
work-flow: 'DT'
Expand All @@ -90,6 +94,7 @@
- 'build_voltha_pod_release_timer':
build-node: 'jenkins-worker-01.berlin-lab'
config-pod: 'berlin-community-pod-1-gpon-fttb'
cluster: 'pod-1.berlin-lab.lfbroadband.org'
disable-job: true
withFttb: true
name-extension: '_DT'
Expand All @@ -104,6 +109,7 @@
timeout: 330
build-node: 'jenkins-worker-01.berlin-lab'
config-pod: 'berlin-community-pod-1-gpon-fttb'
cluster: 'pod-1.berlin-lab.lfbroadband.org'
disable-job: true
withFttb: true
name-extension: '_DT'
Expand All @@ -120,6 +126,7 @@
- 'build_voltha_pod_release_timer':
build-node: 'jenkins-worker-02.berlin-lab'
config-pod: 'berlin-community-pod-2-gpon-zyxel'
cluster: 'pod-2.berlin-lab.lfbroadband.org'
disable-job: true
name-extension: '_DT'
work-flow: 'DT'
Expand All @@ -138,6 +145,7 @@
- 'build_voltha_pod_test':
build-node: 'jenkins-worker-02.berlin-lab'
config-pod: 'berlin-community-pod-2-gpon-zyxel'
cluster: 'pod-2.berlin-lab.lfbroadband.org'
disable-job: true
release: 'master'
branch: 'master'
Expand All @@ -153,6 +161,7 @@
- 'build_voltha_pod_release_timer':
build-node: 'jenkins-worker-02.berlin-lab'
config-pod: 'berlin-community-pod-2-xgspon-zyxel'
cluster: 'pod-2.berlin-lab.lfbroadband.org'
disable-job: true
name-extension: '_DT'
work-flow: 'DT'
Expand All @@ -171,6 +180,7 @@
- 'build_voltha_pod_test':
build-node: 'jenkins-worker-02.berlin-lab'
config-pod: 'berlin-community-pod-2-xgspon-zyxel'
cluster: 'pod-2.berlin-lab.lfbroadband.org'
disable-job: true
release: 'master'
branch: 'master'
Expand All @@ -186,6 +196,7 @@
- 'build_voltha_pod_release_timer':
build-node: 'jenkins-worker-02.berlin-lab'
config-pod: 'berlin-community-pod-2-xgspon-zyxel'
cluster: 'pod-2.berlin-lab.lfbroadband.org'
disable-job: true
release: 'master'
branch: 'master'
Expand All @@ -201,6 +212,7 @@
- 'build_voltha_pod_test':
build-node: 'jenkins-worker-02.berlin-lab'
config-pod: 'berlin-community-pod-2-xgspon-zyxel'
cluster: 'pod-2.berlin-lab.lfbroadband.org'
disable-job: true
release: 'master'
branch: 'master'
Expand All @@ -218,6 +230,7 @@
- 'build_voltha_pod_release_timer':
build-node: 'jenkins-worker-01.berlin-lab'
config-pod: 'berlin-community-pod-1-gpon'
cluster: 'pod-1.berlin-lab.lfbroadband.org'
disable-job: true
release: 'master'
branch: 'master'
Expand All @@ -233,6 +246,7 @@
- 'build_voltha_pod_test':
build-node: 'jenkins-worker-01.berlin-lab'
config-pod: 'berlin-community-pod-1-gpon'
cluster: 'pod-1.berlin-lab.lfbroadband.org'
disable-job: true
release: 'master'
branch: 'master'
Expand All @@ -250,6 +264,7 @@
- 'build_voltha_pod_release_timer_playground':
build-node: 'jenkins-worker-01.berlin-lab'
config-pod: 'berlin-community-pod-1-gpon'
cluster: 'pod-1.berlin-lab.lfbroadband.org'
disable-job: true
release: 'master'
branch: 'master'
Expand All @@ -265,6 +280,7 @@
- 'build_voltha_pod_test_playground':
build-node: 'jenkins-worker-01.berlin-lab'
config-pod: 'berlin-community-pod-1-gpon'
cluster: 'pod-1.berlin-lab.lfbroadband.org'
disable-job: true
release: 'master'
branch: 'master'
Expand All @@ -282,6 +298,7 @@
- 'build_voltha_pod_release_timer':
build-node: 'jenkins-worker-01.berlin-lab'
config-pod: 'berlin-community-pod-1-gpon-adtran'
cluster: 'pod-1.berlin-lab.lfbroadband.org'
disable-job: true
name-extension: '_DT'
work-flow: 'DT'
Expand All @@ -304,6 +321,7 @@
timeout: 390
build-node: 'jenkins-worker-01.berlin-lab'
config-pod: 'berlin-community-pod-1-gpon-adtran'
cluster: 'pod-1.berlin-lab.lfbroadband.org'
disable-job: true
release: 'master'
branch: 'master'
Expand All @@ -321,6 +339,7 @@
- 'verify_voltha_pod_dmi_test':
build-node: 'jenkins-worker-01.berlin-lab'
config-pod: 'berlin-community-pod-1-gpon-adtran'
cluster: 'pod-1.berlin-lab.lfbroadband.org'
disable-job: true
name-extension: '_DT'
work-flow: 'DT'
Expand Down

0 comments on commit 4760e99

Please sign in to comment.