diff --git a/VERSION b/VERSION index c25c8e5..c173e42 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.30.0 +v0.30.1 diff --git a/pkg/codefresh/argo_runtime.go b/pkg/codefresh/argo_runtime.go index e18448a..19faeeb 100644 --- a/pkg/codefresh/argo_runtime.go +++ b/pkg/codefresh/argo_runtime.go @@ -36,16 +36,16 @@ func newArgoRuntimeAPI(codefresh *codefresh) IArgoRuntimeAPI { } func (r *argoRuntime) Create(runtimeName string) (*model.RuntimeCreationResponse, error) { - interpolatedMutation := fmt.Sprintf(`mutation { - runtime(name: "%s") { - id - newAccessToken - } - } - `, runtimeName) - jsonData := map[string]interface{}{ - "query": interpolatedMutation, + "query": `mutation CreateRuntime($name: String!) { + runtime(name: $name) { + name + newAccessToken + } + }`, + "variables": map[string]string{ + "name": runtimeName, + }, } response, err := r.codefresh.requestAPI(&requestOptions{ diff --git a/pkg/codefresh/model/models_gen.go b/pkg/codefresh/model/models_gen.go index 31bc6df..5e5826b 100644 --- a/pkg/codefresh/model/models_gen.go +++ b/pkg/codefresh/model/models_gen.go @@ -641,7 +641,7 @@ type RuntimeCreationResponse struct { // The runtime access token that will be used for requests from the runtime NewAccessToken string `json:"newAccessToken"` // The id of the newly created runtime - ID string `json:"id"` + Name string `json:"id"` } // Runtime Edge