workerbuilder

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 28 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseExtraConf added in v1.3.0

func ParseExtraConf(extraConf string) (map[string][]string, error)

ParseExtraConf parses a NodeSet's Spec.ExtraConf into a map of normalized keys to their values. The expected shape is space-separated Key=Value pairs; each value can be a comma-separated list (e.g. Features=a,b,c). Keys are title-cased so "feature=a" and "Feature=a" both produce key "Feature".

Tokens are split on whitespace, so leading, trailing, and repeated whitespace are tolerated; any token without '=' returns an error. Exported so the NodeSet validation webhook can reject malformed input with the same parser the worker builder uses, keeping the accepted set identical at admission and at build time.

Types

type WorkerBuilder

type WorkerBuilder struct {
	CommonBuilder common.CommonBuilder
	// contains filtered or unexported fields
}

func New

func New(c client.Client) *WorkerBuilder

func (*WorkerBuilder) BuildClusterWorkerPodDisruptionBudget

func (b *WorkerBuilder) BuildClusterWorkerPodDisruptionBudget(nodeset *slinkyv1beta1.NodeSet) (*policyv1.PodDisruptionBudget, error)

BuildClusterWorkerPodDisruptionBudget creates a single PodDisruptionBudget for ALL worker NodeSets in the same Slurm cluster The PodDisruptionBudget name is derived from the Slurm cluster name to support hybrid deployments

func (*WorkerBuilder) BuildClusterWorkerService

func (b *WorkerBuilder) BuildClusterWorkerService(nodeset *slinkyv1beta1.NodeSet) (*corev1.Service, error)

BuildClusterWorkerService creates a single headless service for ALL worker NodeSets in the same Slurm cluster

func (*WorkerBuilder) BuildWorkerPodTemplate

func (b *WorkerBuilder) BuildWorkerPodTemplate(nodeset *slinkyv1beta1.NodeSet, controller *slinkyv1beta1.Controller) corev1.PodTemplateSpec

func (*WorkerBuilder) BuildWorkerSshConfig

func (b *WorkerBuilder) BuildWorkerSshConfig(nodeset *slinkyv1beta1.NodeSet) (*corev1.ConfigMap, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL