OxL Справочник OxL
РусскийEnglish

error cluster-needs

error Стандарт: [§12.1]

Неверное требование needs.

What it means#

needs lists the requirements a node must satisfy to take the role: label("key=value") (a node label), cpu(n), mem(size), disk(size) and gpu(n) (positive amounts known at build time).

Example#

oxl✓ проверяется в CI
cluster demo {
  role gpu { needs label("gpu") }   // <- cluster-needs
}
error
cluster-needs

How to fix#

Write the label as key=value and use a known resource: needs label("gpu=true"); needs mem(8gb).

See also#

OxL 1.0.0-beta · Версия документации 1.0.0-beta© OxwaldLink · сгенерировано из Стандарта, исходников std и руководства