3 ms·
To be fair, I don't see how this could be shorter in any other language without losing readability.
by tomnipotent 6y ago
To be fair, I don't see how this could be shorter in any other language without losing readability.
- yongjik 6y agoYou don't have to. Kubernetes should just say "required" here, and the documentation should say "Warning: this is only checked during scheduling." printf isn't named printIntoBufferWhichMayNotFlushUntilLinefeed, and people are fine with it.
- dharmab 6y agoI believe there may have been a plan to allow checks during runtime at some point; although this feature is no longer necessary since https://github.com/kubernetes-sigs/descheduler#removeduplicates https://github.com/kubernetes-sigs/descheduler#removeduplica... can do it.
- kerny 6y agoThey could have used: soft, hard and strict with the documentation explaining the differences.