Feature Request - Resource to Manage Catalogs
Feature Request
It would be great to have a resource for managing (add, update, remove) a catalog.
I have this on my to-do list. Not sure exactly when I will implement it though, and you're welcome to beat me to it.
Sure, I will try to find time for the same, adding this on my ToDo list as well :)
For the record, the /v1-catalog API point doesn't seem to allow creation of catalog entries. Instead, all catalog entries specifications are stored in the catalog.url setting at /v2-beta/setting/catalog.url, as a JSON hash, e.g.:
"value": "{\"catalogs\":{\"library\":{\"url\":\"https://git.rancher.io/rancher-catalog.git\",\"branch\":\"${RELEASE}\"},\"community\":{\"url\":\"https://git.rancher.io/community-catalog.git\",\"branch\":\"master\"},\"camptocamp\":{\"url\":\"https://github.com/camptocamp/camptocamp-rancher-catalog\",\"branch\":\"master\"}}}"
@cloudnautique is that where it is supposed to be notified, or am I missing something?
There are now two types of catalogs, the global catalogs which are managed through the setting mentioned above, and the environment level catalogs.
A post to https://rancher/v1-catalogs/catalogs with a payload:
{
"name":"swarm-demo",
"branch":"master",
"url":"https://github.com/rancher/swarmkit-catalog",
"kind":"native",
"isNew":true
}
Adds an environment scoped catalog.