regenerate certificates after kubernetes_control_address
Change-Id: Ia7f1a2a18fa4454a0dd541926302d659af099b52
diff --git a/cloud-deploy-pipeline.groovy b/cloud-deploy-pipeline.groovy
index c04e5d2..7d331bf 100644
--- a/cloud-deploy-pipeline.groovy
+++ b/cloud-deploy-pipeline.groovy
@@ -209,6 +209,10 @@
print(kubernetes_control_address)
salt.runSaltProcessStep(saltMaster, 'I@salt:master', 'reclass.cluster_meta_set', ['kubernetes_control_address', kubernetes_control_address], null, true)
+ // ensure certificates are generated properly
+ salt.runSaltProcessStep(saltMaster, '*', 'saltutil.refresh_pillar', [], null, true)
+ salt.enforceState(saltMaster, '*', ['salt.minion.cert'], true)
+
orchestrate.installKubernetesInfra(saltMaster)
}