Documentation
¶
Index ¶
- Constants
- Variables
- func SetAccountingDefaults(accounting *slinkyv1beta1.Accounting)
- func SetControllerDefaults(controller *slinkyv1beta1.Controller)
- func SetLoginSetDefaults(loginset *slinkyv1beta1.LoginSet)
- func SetNodeSetDefaults(nodeset *slinkyv1beta1.NodeSet)
- func SetRestApiDefaults(restapi *slinkyv1beta1.RestApi)
- func SetTokenDefaults(token *slinkyv1beta1.Token)
Constants ¶
const ( DefaultAccountingStoragePort int = 3306 DefaultAccountingStorageDB string = "slurm_acct_db" )
Default values for Accounting Spec fields when unspecified.
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.
const (
DefaultControllerPersistenceEnabled bool = true
)
Default values for Controller Spec fields when unspecified.
const (
DefaultLoginSetReplicas int32 = 1
)
Default values for LoginSet Spec fields when unspecified.
const (
DefaultRestApiReplicas int32 = 1
)
Default values for RestApi Spec fields when unspecified.
const (
DefaultTokenRefresh bool = true
)
Default values for Token Spec fields when unspecified.
Variables ¶
var (
)
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.