0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

rke2: fix validation message for agent token requirement

The message incorrectly stated that 'agentToken' or 'agentTokenFile' should be set when role is 'agent', which is misleading. Corrected it to state that these should NOT be set for the 'agent' role.
This commit is contained in:
Sumit Kumar 2025-05-09 14:17:00 +05:30 committed by Valentin Gagarin
parent 4eb66675aa
commit 158d441ea0

View file

@ -228,7 +228,7 @@ in
}
{
assertion = cfg.role == "agent" -> !(cfg.agentTokenFile != null || cfg.agentToken != "");
message = "agentToken or agentTokenFile should be set if role is 'agent'";
message = "agentToken or agentTokenFile should NOT be set if role is 'agent'";
}
{
assertion = cfg.role == "agent" -> !(cfg.disable != [ ]);