Removing the workflow.uid, because it causes a doubly long uid string.

This commit is contained in:
Aleksandr Melnikov
2020-11-09 16:44:05 -08:00
parent 04a1db0f81
commit 5bd7f222cd

View File

@@ -561,7 +561,7 @@ func (c *Client) injectAccessForSidecars(namespace string, wf *wfv1.Workflow) ([
}
newTemplateOrder = append(newTemplateOrder, templateServiceResource)
//routes
virtualServiceNameUUID := "{{workflow.uid}}-" + uuid.New().String()
virtualServiceNameUUID := "vs-" + uuid.New().String()
hosts := []string{serviceName}
virtualService := map[string]interface{}{
"apiVersion": "networking.istio.io/v1alpha3",