Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 1 | // this keyword is dedicated to deploy a single VOLTHA stack with infra |
| 2 | // If you need to deploy different configurations you can use the volthaInfraDeploy and volthaStackDeploy keywords |
| 3 | |
| 4 | def call(Map config) { |
| 5 | // note that I can't define this outside the function as there's no global scope in Groovy |
| 6 | def defaultConfig = [ |
| 7 | onosReplica: 1, |
| 8 | atomixReplica: 1, |
| 9 | kafkaReplica: 1, |
| 10 | etcdReplica: 1, |
| 11 | bbsimReplica: 1, |
| 12 | infraNamespace: "infra", |
| 13 | volthaNamespace: "voltha", |
| 14 | workflow: "att", |
| 15 | extraHelmFlags: "", |
| 16 | ] |
| 17 | |
| 18 | if (!config) { |
| 19 | config = [:] |
| 20 | } |
| 21 | |
| 22 | def cfg = defaultConfig + config |
| 23 | |
| 24 | println "Deploying VOLTHA with the following parameters: ${cfg}." |
| 25 | |
| 26 | volthaInfraDeploy(cfg) |
| 27 | |
| 28 | volthaStackDeploy(cfg) |
| 29 | } |