Using curl docker image to remove curl install.

This commit is contained in:
Aleksandr Melnikov
2020-04-16 16:07:20 -07:00
parent 5520558ef0
commit 27d5a480a8

View File

@@ -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",
},
},
}