mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-06 22:22:45 +08:00
Adding output parameters to the template with the sidecars.
- These are the URLs for the side-cars.
This commit is contained in:
@@ -565,6 +565,9 @@ func (c *Client) injectAccessForSidecars(namespace string, wf *wfv1.Workflow) ([
|
|||||||
//routes
|
//routes
|
||||||
virtualServiceNameUUID := "vs-" + uuid.New().String()
|
virtualServiceNameUUID := "vs-" + uuid.New().String()
|
||||||
hosts := []string{serviceName}
|
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{}{
|
virtualService := map[string]interface{}{
|
||||||
"apiVersion": "networking.istio.io/v1alpha3",
|
"apiVersion": "networking.istio.io/v1alpha3",
|
||||||
"kind": "VirtualService",
|
"kind": "VirtualService",
|
||||||
|
Reference in New Issue
Block a user