Minion ID should match Kubernetes node name constraints #3258
Labels
complexity:easy
Something that requires less than a day to fix
kind:bug
Something isn't working
topic:deployment
Bugs in or enhancements to deployment stages
topic:salt
Everything related to SaltStack in our product
Milestone
Component:
salt, kubernetes
What happened:
If I set the Salt Minion ID manually (or using hostname) to something that does not match K8s node name constraints (e.g: with some underscore in it), it fail as we use this minion ID to "override" kubelet hostname which cannot contain any underscore
Error is not clear as we just have static pods that cannot be scheduled.
What was expected:
Proper error handling
Steps to reproduce
Just set Salt Minion ID or hostname to something with underscore and start bootstrap process
Resolution proposal (optional):
At the beginning of the bootstrap check that the minion ID match constraints, fail with a clear message if it's not the case
The text was updated successfully, but these errors were encountered: