# Functions
ParseDataDirRaw parse DataDir into hostPath, containerPath.
RandomInt32 just generates a random string of int32.
Select a available port in range (AUTO_SELECT_PORT_MIN ~ AUTO_SELECT_PORT_MAX), and exclude used ports in k8s if 20000 is selected this time, make sure next time it will select 20001.
If default port is available, use it If not set defaultPort, select port automatically.
SetLogLevel sets the logrus logging level.
ShortHumanDuration returns a succint representation of the provided duration with limited precision for consumption by humans.
ValidateJobName validates the job name, its length should less than 63, and match dns1123LabelFmt.
Check if PriorityClassName exists.