Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EnvSlurmctlPort is the environment variable name for the number of processes per node. EnvSlurmctlPort = "SLURMCTL_PORT" // EnvSlurmdPort is the environment variable name for the number of nodes. EnvSlurmdPort = "SLURMD_PORT" // EnvControllerAddress is the environment variable name for the rank of nodes. EnvControllerAddress = "SLURM_CONTROLLER_ADDRESS" EnvTotalNodes = "SLURM_TOTAL_NODES" EnvSlurmConf = "SLURM_CONF" )
View Source
const ( ClusterSchemaKind = "slurm" // SchemaReplicaTypeController is the type of Master of distributed Slurm Cluster SchemaReplicaTypeController kubeclusterorgv1alpha1.ReplicaType = "Controller" SlurmConfDir = "/etc/slurm" SlurmctlPortName = "slurmctl-port" SlurmdPortName = "slurmd-port" SlurmCmdDir = SlurmConfDir MungeDir = SlurmCmdDir + "/munge" EmptyVolume = "slurm-config-dir" EmptyVolumeMountPathInInitContainer = "/mnt/share" EmptyVolumeMountPathInMainContainer = SlurmConfDir EntrypointFilePath = "/tmp/entrypoint.sh" )
Variables ¶
This section is empty.
Functions ¶
func GenRandomInt31n ¶
Types ¶
type EnvVarGenerator ¶
type EnvVarGenerator interface {
Generate(kcluster *kubeclusterorgv1alpha1.KubeCluster) ([]corev1.EnvVar, error)
}
EnvVarGenerator is the environment variable generator interface.
Click to show internal directories.
Click to hide internal directories.