|
11 | 11 | IRuntimeAPI interface { |
12 | 12 | Get(ctx context.Context, name string) (*model.Runtime, error) |
13 | 13 | 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) |
15 | 15 | Delete(ctx context.Context, runtimeName string) (int, error) |
16 | 16 | } |
17 | 17 |
|
@@ -144,22 +144,23 @@ func (r *argoRuntime) List(ctx context.Context) ([]model.Runtime, error) { |
144 | 144 | return runtimes, nil |
145 | 145 | } |
146 | 146 |
|
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) { |
148 | 148 | jsonData := map[string]interface{}{ |
149 | 149 | "query": ` |
150 | 150 | mutation CreateRuntime( |
151 | | - $name: String!, $cluster: String!, $runtimeVersion: String! |
| 151 | + $name: String, $cluster: String, $runtimeVersion: String, $ingressHost: String |
152 | 152 | ) { |
153 | | - runtime(name: $name, cluster: $cluster, runtimeVersion: $runtimeVersion) { |
| 153 | + runtime(name: $name, cluster: $cluster, runtimeVersion: $runtimeVersion, ingressHost: $ingressHost) { |
154 | 154 | name |
155 | 155 | newAccessToken |
156 | 156 | } |
157 | 157 | } |
158 | 158 | `, |
159 | 159 | "variables": map[string]interface{}{ |
160 | | - "name": runtimeName, |
161 | | - "cluster": cluster, |
| 160 | + "name": runtimeName, |
| 161 | + "cluster": cluster, |
162 | 162 | "runtimeVersion": runtimeVersion, |
| 163 | + "ingressHost": ingressHost, |
163 | 164 | }, |
164 | 165 | } |
165 | 166 |
|
|
0 commit comments