forked from openshift/console
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0065167
commit 7b3e4b5
Showing
1 changed file
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
**List Helm Releases** | ||
---- | ||
_Returns List installed helm charts in JSON_ | ||
|
||
* **URL** | ||
|
||
`/api/helm/releases` | ||
|
||
* **Method:** | ||
|
||
`GET` | ||
|
||
* **URL Params** | ||
|
||
**Optional:** | ||
|
||
`ns=[string]` - Namespace | ||
|
||
* **Success Response:** | ||
|
||
* **Code:** 200 <br /> | ||
|
||
* **Error Response:** | ||
|
||
* **Code:** 403 BAD REQUEST <br /> | ||
**Content:** `{ error : "error message" }` | ||
|
||
|
||
**Install Helm Release** | ||
---- | ||
_Install Helm release_ | ||
|
||
* **URL** | ||
|
||
`/api/helm/release` | ||
|
||
* **Method:** | ||
|
||
`POST` | ||
|
||
* **Post Data Params** | ||
|
||
``` | ||
{ | ||
name: [string], | ||
namespace: [string] | ||
chart_url: [string] | ||
values: map[string]interface{} | ||
} | ||
``` | ||
|
||
* **Example Request** | ||
``` | ||
{ | ||
"name": "test-helm-release", | ||
"namespace": "default", | ||
"chart_url": "https://github.com/akashshinde/console/raw/helm_endpoints/pkg/helm/testdata/influxdb-3.0.2.tgz" | ||
"values": { "service": {"type": "ClusterIP"} } | ||
} | ||
``` | ||
|
||
* **Success Response:** | ||
|
||
* **Code:** 200 <br /> | ||
|
||
* **Error Response:** | ||
|
||
* **Code:** 403 BAD REQUEST <br /> | ||
**Content:** `{ error : "error message" }` | ||
|
||
**Render Helm Template/Manifests** | ||
---- | ||
|
||
_Simulates helm template command_ | ||
|
||
* **URL** | ||
|
||
`/api/helm/template` | ||
|
||
* **Method:** | ||
|
||
`POST` | ||
|
||
* **Post Data Params** | ||
|
||
``` | ||
{ | ||
name: [string], | ||
namespace: [string] | ||
chart_url: [string] | ||
value: map[string]interface{} | ||
} | ||
``` | ||
|
||
* **Example Request** | ||
``` | ||
{ | ||
"name": "test-helm-release", | ||
"namespace": "default", | ||
"chart_url": "https://github.com/akashshinde/console/raw/helm_endpoints/pkg/helm/testdata/influxdb-3.0.2.tgz" | ||
"values": { "service": {"type": "ClusterIP"} } | ||
} | ||
``` | ||
|
||
* **Success Response:** | ||
|
||
* **Code:** 200 <br /> | ||
|
||
* **Error Response:** | ||
|
||
* **Code:** 403 BAD REQUEST <br /> | ||
**Content:** `{ error : "error message" }` |