@@ -188,10 +188,10 @@ type SlurmConfig struct {
188188 // It is set automatically to `topology/tree` if SlurmTopologyConfigMapRefName is specified.
189189 //
190190 // +kubebuilder:validation:Optional
191+ // +kubebuilder:default="topology/tree"
191192 TopologyPlugin string `json:"topologyPlugin,omitempty"`
192193 // TopologyParam is list of comma-separated options identifying network topology options.
193194 //
194- // +kubebuilder:default=topology/tree
195195 TopologyParam string `json:"topologyParam,omitempty"`
196196}
197197
@@ -649,6 +649,21 @@ type SlurmRest struct {
649649 // +kubebuilder:default=false
650650 Enabled bool `json:"enabled,omitempty"`
651651
652+ // ThreadCount defines the number of threads for slurmrestd
653+ //
654+ // +kubebuilder:validation:Optional
655+ // +kubebuilder:validation:Minimum=2
656+ // +kubebuilder:validation:Maximum=1024
657+ // +kubebuilder:default=3
658+ ThreadCount * int32 `json:"threadCount,omitempty"`
659+
660+ // MaxConnections defines the maximum number of connections for slurmrestd
661+ //
662+ // +kubebuilder:validation:Optional
663+ // +kubebuilder:validation:Minimum=2
664+ // +kubebuilder:default=10
665+ MaxConnections * int32 `json:"maxConnections,omitempty"`
666+
652667 // SlurmRestNode represents the Slurm REST API daemon configuration
653668 //
654669 // +kubebuilder:validation:Optional
0 commit comments