Adding output parameters to the template with the sidecars.

- These are the URLs for the side-cars.
This commit is contained in:
Aleksandr Melnikov
2020-11-10 13:50:41 -08:00
parent 5e4d5c0242
commit 74752efd20

View File

@@ -565,6 +565,9 @@ func (c *Client) injectAccessForSidecars(namespace string, wf *wfv1.Workflow) ([
//routes
virtualServiceNameUUID := "vs-" + uuid.New().String()
hosts := []string{serviceName}
wf.Spec.Templates[tIdx].Outputs.Parameters = append(wf.Spec.Templates[tIdx].Outputs.Parameters,
wfv1.Parameter{Name: "sys-sidecar-url--" + s.Name, Value: &serviceName},
)
virtualService := map[string]interface{}{
"apiVersion": "networking.istio.io/v1alpha3",
"kind": "VirtualService",