mirror of
				https://github.com/onepanelio/onepanel.git
				synced 2025-10-31 08:46:20 +08:00 
			
		
		
		
	Excluding istio side-car from resource creation.
- Otherwise, the step hangs and never finishes, so long as istio container runs.
This commit is contained in:
		| @@ -485,6 +485,11 @@ func (c *Client) createWorkflow(namespace string, workflowTemplateID uint64, wor | ||||
| 						serviceManifest := string(serviceManifestBytes) | ||||
| 						templateServiceResource := wfv1.Template{ | ||||
| 							Name: "k8s-services-resource", | ||||
| 							Metadata: wfv1.Metadata{ | ||||
| 								Annotations: map[string]string{ | ||||
| 									"sidecar.istio.io/inject": "false", | ||||
| 								}, | ||||
| 							}, | ||||
| 							Resource: &wfv1.ResourceTemplate{ | ||||
| 								Action:           "create", | ||||
| 								SuccessCondition: "status.succeeded > 0", | ||||
| @@ -525,6 +530,11 @@ func (c *Client) createWorkflow(namespace string, workflowTemplateID uint64, wor | ||||
|  | ||||
| 						templateRouteResource := wfv1.Template{ | ||||
| 							Name: "k8s-routes-resource", | ||||
| 							Metadata: wfv1.Metadata{ | ||||
| 								Annotations: map[string]string{ | ||||
| 									"sidecar.istio.io/inject": "false", | ||||
| 								}, | ||||
| 							}, | ||||
| 							Resource: &wfv1.ResourceTemplate{ | ||||
| 								Action:           "create", | ||||
| 								SuccessCondition: "status.succeeded > 0", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aleksandr Melnikov
					Aleksandr Melnikov