Skip to content

Commit

Permalink
Add helm api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
akashshinde committed Feb 13, 2020
1 parent 0065167 commit 7b3e4b5
Showing 1 changed file with 112 additions and 0 deletions.
112 changes: 112 additions & 0 deletions docs/helm/README.md
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" }`

0 comments on commit 7b3e4b5

Please sign in to comment.