mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-05 05:36:50 +08:00
Using curl docker image to remove curl install.
This commit is contained in:
@@ -1187,12 +1187,12 @@ func GetExitHandlerWorkflowStatistics(client *Client, namespace string, workflow
|
||||
wfv1Template = wfv1.Template{
|
||||
Name: workflowStepTemplate,
|
||||
Container: &corev1.Container{
|
||||
Image: "alpine:latest",
|
||||
Image: "curlimages/curl",
|
||||
Command: []string{"sh", "-c"},
|
||||
Args: []string{"apk add curl;" +
|
||||
Args: []string{
|
||||
"curl '" + curlEndpoint + "' -H \"Content-Type: application/json\" -H 'Connection: keep-alive' -H 'Accept: application/json' " +
|
||||
"-H 'Authorization: Bearer " + token + "' " +
|
||||
curlJSONBody + " --compressed",
|
||||
"-H 'Authorization: Bearer " + token + "' " +
|
||||
curlJSONBody + " --compressed",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user