Skip to content

Commit 065cc46

Browse files
with ingresshost
1 parent 9a4f121 commit 065cc46

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

pkg/codefresh/argo_runtime.go

Lines changed: 7 additions & 6 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, cluster, runtimeVersion string) (*model.RuntimeCreationResponse, error)
14+
Create(ctx context.Context, runtimeName, cluster, runtimeVersion, ingressHost string) (*model.RuntimeCreationResponse, error)
1515
Delete(ctx context.Context, runtimeName string) (int, error)
1616
}
1717

@@ -144,22 +144,23 @@ 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, cluster, runtimeVersion string) (*model.RuntimeCreationResponse, error) {
147+
func (r *argoRuntime) Create(ctx context.Context, runtimeName, cluster, runtimeVersion, ingressHost string) (*model.RuntimeCreationResponse, error) {
148148
jsonData := map[string]interface{}{
149149
"query": `
150150
mutation CreateRuntime(
151-
$name: String!, $cluster: String!, $runtimeVersion: String!
151+
$name: String, $cluster: String, $runtimeVersion: String, $ingressHost: String
152152
) {
153-
runtime(name: $name, cluster: $cluster, runtimeVersion: $runtimeVersion) {
153+
runtime(name: $name, cluster: $cluster, runtimeVersion: $runtimeVersion, ingressHost: $ingressHost) {
154154
name
155155
newAccessToken
156156
}
157157
}
158158
`,
159159
"variables": map[string]interface{}{
160-
"name": runtimeName,
161-
"cluster": cluster,
160+
"name": runtimeName,
161+
"cluster": cluster,
162162
"runtimeVersion": runtimeVersion,
163+
"ingressHost": ingressHost,
163164
},
164165
}
165166

0 commit comments

Comments
 (0)