ytsaurus / ytsaurus-k8s-operator

Kubernetes operator for YTsaurus.
https://ytsaurus.tech
Other
35 stars 24 forks source link

Check pool existence in master init job #358

Open l0kix2 opened 3 weeks ago

l0kix2 commented 3 weeks ago
 /usr/bin/yt create scheduler_pool --attributes '{name=research; pool_tree=default}' --ignore-existing

from here https://github.com/ytsaurus/ytsaurus-k8s-operator/blob/2dcaffb11d3bde12412044f3ce8149321769cd4c/pkg/components/master.go#L270-L270 fails if pool exists

    Failed to attach child "research" to scheduler pool tree "default"
        Pool tree "default" already contains pool with name "research"

--ignore-existing doesn't work for pool, need to be checked with yt exists

Have to be said that it is not really popular use case to re-create ytsaurus spec for the existing cluster