Skip to content

Commit af5079a

Browse files
good request
1 parent 51943ba commit af5079a

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

pkg/codefresh/argo_runtime.go

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,20 @@ func newArgoRuntimeAPI(codefresh *codefresh) IRuntimeAPI {
5555
func (r *argoRuntime) Create(ctx context.Context, runtimeName, cluster, runtimeVersion, ingressHost string, componentNames []string) (*model.RuntimeCreationResponse, error) {
5656
jsonData := map[string]interface{}{
5757
"query": `
58-
mutation CreateRuntime(
59-
$input: InstallationArgs!
60-
) {
61-
runtime(InstallationArgs: $input) {
58+
mutation CreateRuntime($installationArgs: InstallationArgs!) {
59+
runtime(installationArgs: $installationArgs) {
6260
name
6361
newAccessToken
6462
}
6563
}
6664
`,
67-
"variables": map[string]interface{}{
68-
"InstallationArgs": {
69-
runtimeName,
70-
cluster,
71-
runtimeVersion,
72-
componentNames,
73-
ingressHost,
65+
"variables": map[string]map[string]interface{}{
66+
"installationArgs": {
67+
"runtimeName": runtimeName,
68+
"cluster": cluster,
69+
"runtimeVersion": runtimeVersion,
70+
"componentNames": componentNames,
71+
"ingressHost": ingressHost,
7472
},
7573
},
7674
}

0 commit comments

Comments
 (0)