blob: dae88a85ac55082ea57cbbe3d20283fd5345757e [file] [log] [blame]
Matteo Scandolo42f6e572021-01-25 15:11:34 -08001// 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
4def 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",
Matteo Scandolo2bc660a2021-02-12 10:52:25 -080014 stackName: "voltha",
15 stackId: 1,
Matteo Scandolo42f6e572021-01-25 15:11:34 -080016 workflow: "att",
17 extraHelmFlags: "",
Matteo Scandolofcfc60d2021-02-24 09:06:48 -080018 localCharts: false, // wether to use locally cloned charts or upstream one (for local we assume they are stored in $WORKSPACE/voltha-helm-charts)
Matteo Scandolo42f6e572021-01-25 15:11:34 -080019 ]
20
21 if (!config) {
22 config = [:]
23 }
24
25 def cfg = defaultConfig + config
26
27 println "Deploying VOLTHA with the following parameters: ${cfg}."
28
29 volthaInfraDeploy(cfg)
30
31 volthaStackDeploy(cfg)
32}