flant / addon-operator

A system to manage additional components for Kubernetes cluster in a simple, consistent and automated way.
https://flant.github.io/addon-operator/
Apache License 2.0
483 stars 27 forks source link

[Addon-operator ] Add debug routes #431

Closed Dmitrykob closed 10 months ago

Dmitrykob commented 10 months ago

Description

Added an endpoint "/discovery" for the "/global/" and "/module/" routes.

$curl http://localhost:9652/discovery

GET /global/config.{format:(json|yaml)}
GET /global/list.{format:(json|yaml)}
GET /global/patches.{format:(json|yaml)}
GET /global/snapshots.{format:(json|yaml)}
GET /global/values.{format:(json|yaml)}
GET /module/list.{format:(json|yaml|text)}
GET /module/resource-monitor.{format:(json|yaml)}
GET /module/{name}/patches.json
GET /module/{name}/render
GET /module/{name}/snapshots.{format:(json|yaml)}
GET /module/{name}/{type:(config|values)}.{format:(json|yaml)}

Why do we need it, and what problem does it solve?

Fix https://github.com/deckhouse/deckhouse/issues/5827

What is the expected result?

A new endpoint is available. Calling the endpoint returns a list of available routes "/global/" and "/module/".