Add params for netchecker agent/server image
Change-Id: Ie199ac9b084cd5e5a78a39c61e673dd837dcc5c4
diff --git a/lab-pipeline.groovy b/lab-pipeline.groovy
index 14463da..c194172 100644
--- a/lab-pipeline.groovy
+++ b/lab-pipeline.groovy
@@ -41,6 +41,8 @@
* CALICO_CNI_IMAGE Docker repository and tag for calico CNI image
* CALICO_NODE_IMAGE Docker repository and tag for calico node image
* CALICOCTL_IMAGE Docker repository and tag for calicoctl image
+ * NETCHECKER_AGENT_IMAGE Docker repository and tag for netchecker agent image
+ * NETCHECKER_SERVER_IMAGE Docker repository and tag for netchecker server image
*
*/
@@ -175,6 +177,15 @@
salt.runSaltProcessStep(saltmaster, 'I@salt:master', 'file.append', overwriteFile, " kubernetes_calicoctl_image: ${CALICOCTL_IMAGE}")
}
+ // Overwrite netchecker vars if specified
+ if (env.getEnvironment().containsKey("NETCHECKER_AGENT_IMAGE")) {
+ salt.runSaltProcessStep(saltmaster, 'I@salt:master', 'file.append', overwriteFile, " kubernetes_netchecker_agent_image: ${NETCHECKER_AGENT_IMAGE}")
+ }
+ if (env.getEnvironment().containsKey("NETCHECKER_SERVER_IMAGE")) {
+ salt.runSaltProcessStep(saltmaster, 'I@salt:master', 'file.append', overwriteFile, " kubernetes_netchecker_server_image: ${NETCHECKER_SERVER_IMAGE}")
+ }
+
+
orchestrate.installKubernetesControl(saltMaster)
}