Skip readiness check on init for Istio SMI

This commit is contained in:
stefanprodan
2019-06-19 11:16:11 +03:00
parent dc3cde88d2
commit bf7ebc9708
+1 -1
View File
@@ -93,7 +93,7 @@ func (c *Controller) advanceCanary(name string, namespace string, skipLivenessCh
// create primary deployment and hpa if needed
// skip primary check for Istio since the deployment will become ready after the ClusterIP are created
skipPrimaryCheck := false
if skipLivenessChecks || c.meshProvider == "istio" {
if skipLivenessChecks || strings.Contains(c.meshProvider, "istio") {
skipPrimaryCheck = true
}
label, ports, err := c.deployer.Initialize(cd, skipPrimaryCheck)