mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-17 19:20:36 +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{
|
wfv1Template = wfv1.Template{
|
||||||
Name: workflowStepTemplate,
|
Name: workflowStepTemplate,
|
||||||
Container: &corev1.Container{
|
Container: &corev1.Container{
|
||||||
Image: "alpine:latest",
|
Image: "curlimages/curl",
|
||||||
Command: []string{"sh", "-c"},
|
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' " +
|
"curl '" + curlEndpoint + "' -H \"Content-Type: application/json\" -H 'Connection: keep-alive' -H 'Accept: application/json' " +
|
||||||
"-H 'Authorization: Bearer " + token + "' " +
|
"-H 'Authorization: Bearer " + token + "' " +
|
||||||
curlJSONBody + " --compressed",
|
curlJSONBody + " --compressed",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user