ytsaurus / ytsaurus-ui

Web interface for YTsaurus.
https://ytsaurus.tech
Other
37 stars 19 forks source link

Configurable sources for host/container selectors #239

Open zlobober opened 11 months ago

zlobober commented 11 months ago

There is a selector container/host at the System page. image

Currently its logic is as follows:

In k8s (at least in Nebius convention) the logic must be different:

I believe that there may be other situations when some of these selectors must be handled differently (i.e. in case of installations without k8s outside of Yandex). Therefore, I'd suggest introduce two options allowing customization of the data source for these selectors.

For example, it may look as follows: instance_host_source = "instance_name" | "annotation:<annotation_name>" instance_container_source = "instance_name" | "annotation:<annotation_name>"

For Yandex configuration will be instance_host_source = "annotation:physical_host" and instance_container_source = "instance_name"; for Nebius k8s it will be instance_host_source = "instance_name" and instance_container_source = "annotation:k8s_pod_name".

ma-efremoff commented 10 months ago

It would be better if Backend was able to provide correct names from certain attributes that independent on its environment. Is it possible to add such special attributes with correct container_name and host_name for any environment of Backand? @zlobober