Skip to content

Commit 9a4f121

Browse files
bump and change
1 parent 724bb01 commit 9a4f121

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.34.3
1+
0.34.4

pkg/codefresh/argo_runtime.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type (
1111
IRuntimeAPI interface {
1212
Get(ctx context.Context, name string) (*model.Runtime, error)
1313
List(ctx context.Context) ([]model.Runtime, error)
14-
Create(ctx context.Context, runtimeName string) (*model.RuntimeCreationResponse, error)
14+
Create(ctx context.Context, runtimeName, cluster, runtimeVersion string) (*model.RuntimeCreationResponse, error)
1515
Delete(ctx context.Context, runtimeName string) (int, error)
1616
}
1717

@@ -144,20 +144,22 @@ func (r *argoRuntime) List(ctx context.Context) ([]model.Runtime, error) {
144144
return runtimes, nil
145145
}
146146

147-
func (r *argoRuntime) Create(ctx context.Context, runtimeName string) (*model.RuntimeCreationResponse, error) {
147+
func (r *argoRuntime) Create(ctx context.Context, runtimeName, cluster, runtimeVersion string) (*model.RuntimeCreationResponse, error) {
148148
jsonData := map[string]interface{}{
149149
"query": `
150150
mutation CreateRuntime(
151-
$name: String!
151+
$name: String!, $cluster: String!, $runtimeVersion: String!
152152
) {
153-
runtime(name: $name) {
153+
runtime(name: $name, cluster: $cluster, runtimeVersion: $runtimeVersion) {
154154
name
155155
newAccessToken
156156
}
157157
}
158158
`,
159159
"variables": map[string]interface{}{
160160
"name": runtimeName,
161+
"cluster": cluster,
162+
"runtimeVersion": runtimeVersion,
161163
},
162164
}
163165

0 commit comments

Comments
 (0)