defaults

package
v1.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAccountingStoragePort int    = 3306
	DefaultAccountingStorageDB   string = "slurm_acct_db"
)

Default values for Accounting Spec fields when unspecified.

View Source
const (
	DefaultNodeSetReplicas                     int32                                   = 1
	DefaultNodeSetWorkloadDisruptionProtection bool                                    = true
	DefaultNodeSetScalingMode                  slinkyv1beta1.ScalingModeType           = slinkyv1beta1.ScalingModeStatefulset
	DefaultNodeSetUpdateStrategyType           slinkyv1beta1.NodeSetUpdateStrategyType = slinkyv1beta1.RollingUpdateNodeSetStrategyType
)

Default values for NodeSet Spec fields when unspecified.

View Source
const (
	DefaultControllerPersistenceEnabled bool = true
)

Default values for Controller Spec fields when unspecified.

View Source
const (
	DefaultLoginSetReplicas int32 = 1
)

Default values for LoginSet Spec fields when unspecified.

View Source
const (
	DefaultRestApiReplicas int32 = 1
)

Default values for RestApi Spec fields when unspecified.

View Source
const (
	DefaultTokenRefresh bool = true
)

Default values for Token Spec fields when unspecified.

Variables

View Source
var (
	DefaultNodeSetRollingUpdateMaxUnavailable intstr.IntOrString = intstr.FromString("25%")
)

Default values for NodeSet Spec fields when unspecified.

Functions

func SetAccountingDefaults

func SetAccountingDefaults(accounting *slinkyv1beta1.Accounting)

SetAccountingDefaults applies default values for Accounting spec fields. The Kubernetes API does not always apply CRD schema defaults (e.g. unless the parent object is given). Calling this on a copy when we read the Accounting ensures the controller always sees defaulted values. The stored object in the API server is unchanged.

Call this on a copy of the Accounting (e.g. after DeepCopy in the controller) before using the spec.

func SetControllerDefaults

func SetControllerDefaults(controller *slinkyv1beta1.Controller)

SetControllerDefaults applies default values for Controller spec fields. The Kubernetes API does not always apply CRD schema defaults (e.g. unless the parent object is given). Calling this on a copy when we read the Controller ensures the controller always sees defaulted values. The stored object in the API server is unchanged.

Call this on a copy of the Controller (e.g. after DeepCopy in the controller) before using the spec.

func SetLoginSetDefaults

func SetLoginSetDefaults(loginset *slinkyv1beta1.LoginSet)

SetLoginSetDefaults applies default values for LoginSet spec fields. The Kubernetes API does not always apply CRD schema defaults (e.g. unless the parent object is given). Calling this on a copy when we read the LoginSet ensures the controller always sees defaulted values. The stored object in the API server is unchanged.

Call this on a copy of the LoginSet (e.g. after DeepCopy in the controller) before using the spec.

func SetNodeSetDefaults

func SetNodeSetDefaults(nodeset *slinkyv1beta1.NodeSet)

func SetRestApiDefaults

func SetRestApiDefaults(restapi *slinkyv1beta1.RestApi)

func SetTokenDefaults

func SetTokenDefaults(token *slinkyv1beta1.Token)

Types

This section is empty.

Jump to

Keyboard shortcuts

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