{"info":{"_postman_id":"2c847c21-a67e-4ab6-a3f3-1b11b422c90f","name":"helmAPI","description":"<html><head></head><body><p>This API is inspired from <a href=\"https://github.com/microsoft/helm-web-api\">helm-web-api</a>, which doesn't support Helm v3. This API is backwards compatible with helm-web-api, so requests that worked with helm-web-api should also work with this API.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"7024275","collectionId":"2c847c21-a67e-4ab6-a3f3-1b11b422c90f","publishedId":"TW76C4SM","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"310A54","highlight":"b659d9"},"publishDate":"2021-02-08T17:11:46.000Z"},"item":[{"name":"Chart","item":[{"name":"Delete Release","id":"54bddf7d-ed05-4282-aba0-f3e39a4d36b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"releaseName\": \"testid2\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/delete","description":"<p>This is as straightforward as it looks. This request will uninstall a release specified by <code>releaseName</code>. Calling this request is equivalent to running <code>helm uninstall releaseName</code></p>\n","urlObject":{"path":["delete"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"54bddf7d-ed05-4282-aba0-f3e39a4d36b7"},{"name":"Install Chart","id":"991f91e6-955d-4157-ad78-425359cd1f3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"chartName\": \"mayanr\",\n    \"releaseName\": \"rt-{{runtimeId}}\",\n    \"privateChartsRepo\": \"{{privateRepo}}\",\n    \"values\": {\n        \"privateChartsRepo\": \"{{privateRepo}}\",\n        \"image\": {\n            \"repository\": \"registry.gitlab.com/dush-t/mayanr\",\n            \"tag\": \"latest\",\n            \"runtimeId\": \"{{runtimeId}}\",\n            \"runtimeAuthToken\": \"{{runtimeAuthToken}}\"\n        },\n        \"ingress.domain\": \"dev.mayahq.com\",\n        \"userRuntimeOwner\": \"shubham\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/install","description":"<p>This request can be used for installing a chart onto the cluster. The parameters in request body are - </p>\n<ul>\n<li><code>chartName</code> (REQUIRED): Name of the helm chart to install.</li>\n<li><code>releaseName</code> (REQUIRED): Name of the release</li>\n<li><code>values</code> (OPTIONAL): Value overrides for the chart (the one you set with <code>--set</code>)</li>\n<li><code>flags</code> (OPTIONAL): Array of flags to pass.</li>\n</ul>\n<p>For example, a request with this body - </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"chartName\": \"stable/mysql\",\n  \"releaseName\": \"mysqlapp\",\n  \"values\": {\n    \"foo.bar1\": \"bruh\",\n    \"foo.bar2\": \"moment\"\n  },\n  \"flags\": [\"--atomic\", \"--description\", \"custom mysql chart\"]\n}\n</code></pre>\n<p>Is equivalent to this command - </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-shell\">helm install mysqlapp stable/mysql --set foo.bar1=bruh,foo.bar2=moment --atomic --description \"custom mysql chart\"\n</code></pre>\n<h1 id=\"nested-values\">Nested Values</h1>\n<p>The <code>values</code> parameter can be specified in a flat manner as done above, and also in a nested manner.</p>\n<p>What this means is that the request body as shown below will have the same effect as the request body mentioned above. This is true to any level of nesting.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"chartName\": \"stable/mysql\",\n  \"releaseName\": \"mysqlapp\",\n  \"values\": {\n    \"foo\": {\n      \"bar1\": \"bruh\",\n      \"bar2\": \"moment\"\n    }\n  },\n  \"flags\": [\"--atomic\", \"--description\", \"custom mysql chart\"]\n}\n</code></pre>\n<h1 id=\"nested-and-flat-values-together\">Nested and flat values together</h1>\n<p>It is also possible to use both kinds of formats for the <code>values</code> field. That means that the request body shown below will also have the same effect as both the request bodies shown above.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"chartName\": \"stable/mysql\",\n  \"releaseName\": \"mysqlapp\",\n  \"values\": {\n    \"foo\": {\n      \"bar1\": \"bruh\"\n    },\n    \"foo.bar2\": \"moment\"\n  },\n  \"flags\": [\"--atomic\", \"--description\", \"custom mysql chart\"]\n}\n</code></pre>\n<p>In case of conflicts, the value that comes later will take precedence.</p>\n","urlObject":{"path":["install"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"45e3f776-0ab4-45b8-8e4c-d91d08ff728a","name":"Flat Values","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"chartName\": \"mayahq/mayanr\",\n    \"releaseName\": \"nrtest\",\n    \"values\": {\n        \"image.runtimeId\": \"testruntime\",\n        \"image\": {\n            \"authToken\": \"bruhmoment\"\n        }\n    },\n    \"flags\": [\"--atomic\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/install"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"f44a83ad-349e-40b8-a4db-d4047e2e6cf0","name":"Nested Values","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"chartName\": \"mayahq/mayanr\",\n    \"releaseName\": \"nrtest\",\n    \"values\": {\n        \"image\": {\n            \"runtimeId\": \"testruntime\",\n            \"authToken\": \"bruhmoment\"\n        }\n    },\n    \"flags\": [\"--atomic\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/install"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Mon, 08 Feb 2021 10:49:52 GMT"},{"key":"Content-Length","value":"21"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\"\n}"}],"_postman_id":"991f91e6-955d-4157-ad78-425359cd1f3a"}],"id":"5680197b-199a-4f3b-8f8e-2f02fc30ab8a","description":"<p>The chart endpoints can be used to install, delete or upgrade charts.</p>\n","_postman_id":"5680197b-199a-4f3b-8f8e-2f02fc30ab8a"},{"name":"Repo","item":[{"name":"Update Repos","id":"73eed912-f6b9-4af4-b05f-423221a5c497","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{url}}/repo/update","urlObject":{"path":["repo","update"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"73eed912-f6b9-4af4-b05f-423221a5c497"},{"name":"Add Repo","id":"89b5630e-b079-4444-926e-b080d36cf248","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"mayahq\",\n    \"url\": \"{{privateRepo}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/repo/add","urlObject":{"path":["repo","add"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"89b5630e-b079-4444-926e-b080d36cf248"},{"name":"Delete Repos","id":"b4f1c36d-e17a-44d9-acd2-593d87b1427c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"repos\": [\"stable\", \"bitnami\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/repo/delete","urlObject":{"path":["repo","delete"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b4f1c36d-e17a-44d9-acd2-593d87b1427c"}],"id":"e7f2a3f7-37ac-4889-a7f1-8f909610479d","_postman_id":"e7f2a3f7-37ac-4889-a7f1-8f909610479d","description":""},{"name":"Runtime","item":[{"name":"Restart runtimes","id":"be4f77d8-26bc-45fe-8007-a972d2bac0bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"runtimeIds\": [\n        \"testid2\"\n    ],\n    \"concurrent\": true,\n    \"timeout\": \"40s\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/runtime/restart","urlObject":{"path":["runtime","restart"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"be4f77d8-26bc-45fe-8007-a972d2bac0bd"},{"name":"Stop runtimes","id":"cec8bd27-8a49-47a4-bb2c-85b88b33ac97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"runtimeIds\": [\n        \"testid2\"\n    ],\n    \"concurrent\": true,\n    \"timeout\": \"40s\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/runtime/delete","description":"<p>This is as straightforward as it looks. This request will uninstall a release specified by <code>releaseName</code>. Calling this request is equivalent to running <code>helm uninstall releaseName</code></p>\n","urlObject":{"path":["runtime","delete"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cec8bd27-8a49-47a4-bb2c-85b88b33ac97"},{"name":"Fetch Pods By User","id":"1833efbc-f304-42c2-ba6b-5635c76e681b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"users\": [\"dushyant\", \"shubham\"],\n    \"namespace\": \"default\",\n    \"limit\": 4,\n    \"continue\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/runtime/list-pods","urlObject":{"path":["runtime","list-pods"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1833efbc-f304-42c2-ba6b-5635c76e681b"},{"name":"Get Pod By Name","id":"26bb6649-6569-4231-a650-1dc297b84efb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"namespace\": \"default\",\n    \"name\": \"rt-testid-56656d69c5-ld2sh\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/runtime/get-pod","urlObject":{"path":["runtime","get-pod"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"26bb6649-6569-4231-a650-1dc297b84efb"},{"name":"Query Pods By Labels","id":"17ae6988-765b-4b8a-b441-5cfb987ad3b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"labelQuery\": \"app.kubernetes.io/instance==rt-62cd8e783aaf1c20f010774a\",\n    \"namespace\": \"runtimes\",\n    \"limit\": 50,\n    \"continue\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/runtime/query-pods-by-labels","urlObject":{"path":["runtime","query-pods-by-labels"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"17ae6988-765b-4b8a-b441-5cfb987ad3b1"}],"id":"16967870-cd73-4f47-a7b8-daddb046464e","_postman_id":"16967870-cd73-4f47-a7b8-daddb046464e","description":""},{"name":"Cert","item":[{"name":"Get Cert","id":"fffc5d82-5988-4855-a860-11cad06c4479","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"sibeshkar-secret\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/cert","urlObject":{"path":["cert"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fffc5d82-5988-4855-a860-11cad06c4479"}],"id":"e2572809-b9c3-4242-98db-d6a2fc3616db","_postman_id":"e2572809-b9c3-4242-98db-d6a2fc3616db","description":""},{"name":"Issuer","item":[{"name":"Get Issuer","id":"e4fb710a-c26c-46cf-a2b5-ca397f891627","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"issuer-shubot\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/issuer","urlObject":{"path":["issuer"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e4fb710a-c26c-46cf-a2b5-ca397f891627"}],"id":"f685df51-a8d7-4599-bb23-658de81cbb05","_postman_id":"f685df51-a8d7-4599-bb23-658de81cbb05","description":""}]}