import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/from-chart"
payload = {
"name": "<string>",
"chart_name": "<string>",
"chart_version": "<string>",
"registry_name": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
chart_name: '<string>',
chart_version: '<string>',
registry_name: '<string>'
})
};
fetch('https://platform.ankra.app/api/v1/org/stack-profiles/from-chart', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/stack-profiles/from-chart \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"chart_name": "<string>",
"chart_version": "<string>",
"registry_name": "<string>"
}
'{
"profile": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"logo_url": "<string>",
"has_uploaded_logo": true,
"uploaded_logo_updated_at": "2023-11-07T05:31:56Z",
"category": "<string>",
"tags": [
"<string>"
],
"visibility": "organisation",
"latest_version": 123,
"current_version": 123,
"source_cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by_user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"publisher_name": "<string>",
"publisher_slug": "<string>",
"publisher_verified": true,
"publisher_is_ankra": true,
"publisher_has_logo": true,
"publisher_logo_updated_at": "2023-11-07T05:31:56Z",
"shared_organisation_count": 123,
"shared_with_you": true,
"is_owner": true
},
"version": {},
"warnings": [
"<string>"
]
}Create a stack profile from a Helm chart
Makes one Helm chart from a registry your organisation can use into a stack profile and stores its first version, so a managed service can be published over it: one stack holding the chart, installed into the namespace named after each service. With generated_secret, the profile also carries a credentials release that generates that Secret’s keys in the service’s cluster on the first install and keeps them on every upgrade; Ankra never sees the values. Answers 201 with the profile and the version, and 422 naming the field a request cannot be built from.
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/from-chart"
payload = {
"name": "<string>",
"chart_name": "<string>",
"chart_version": "<string>",
"registry_name": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
chart_name: '<string>',
chart_version: '<string>',
registry_name: '<string>'
})
};
fetch('https://platform.ankra.app/api/v1/org/stack-profiles/from-chart', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/stack-profiles/from-chart \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"chart_name": "<string>",
"chart_version": "<string>",
"registry_name": "<string>"
}
'{
"profile": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"logo_url": "<string>",
"has_uploaded_logo": true,
"uploaded_logo_updated_at": "2023-11-07T05:31:56Z",
"category": "<string>",
"tags": [
"<string>"
],
"visibility": "organisation",
"latest_version": 123,
"current_version": 123,
"source_cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by_user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"publisher_name": "<string>",
"publisher_slug": "<string>",
"publisher_verified": true,
"publisher_is_ankra": true,
"publisher_has_logo": true,
"publisher_logo_updated_at": "2023-11-07T05:31:56Z",
"shared_organisation_count": 123,
"shared_with_you": true,
"is_owner": true
},
"version": {},
"warnings": [
"<string>"
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
One Helm chart to make into a stack profile a managed service can be published over.
The profile's name and its one stack's: a Kubernetes name.
A Helm registry as registered in Ankra: the organisation's own of that name, or the shared catalogue's.
The chart's values document, at most 256 KiB.
The Secret Ankra generates in each service's namespace, before the chart is installed and kept on every upgrade.
Show child attributes
Show child attributes