Skip to content

Commit 6415dab

Browse files
authored
Merge pull request #32 from codefresh-io/CR-6004
CR-6004 - changed ql endpoint to use `2.0` instead of `argo`
2 parents 749a67a + 9062261 commit 6415dab

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.30.3
1+
0.31.0

pkg/codefresh/argo_runtime.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ type (
3131
}
3232
)
3333

34+
var qlEndPoint = "/2.0/api/graphql"
35+
3436
func newArgoRuntimeAPI(codefresh *codefresh) IArgoRuntimeAPI {
3537
return &argoRuntime{codefresh: codefresh}
3638
}
@@ -52,7 +54,7 @@ func (r *argoRuntime) Create(runtimeName, cluster, runtimeVersion string) (*mode
5254

5355
response, err := r.codefresh.requestAPI(&requestOptions{
5456
method: "POST",
55-
path: "/argo/api/graphql",
57+
path: qlEndPoint,
5658
body: jsonData,
5759
})
5860

@@ -109,7 +111,7 @@ func (r *argoRuntime) List() ([]model.Runtime, error) {
109111

110112
response, err := r.codefresh.requestAPI(&requestOptions{
111113
method: "POST",
112-
path: "/argo/api/graphql",
114+
path: qlEndPoint,
113115
body: jsonData,
114116
})
115117
if err != nil {

0 commit comments

Comments
 (0)