Documentation
¶
Index ¶
- Constants
- type ControllerBuilder
- func (b *ControllerBuilder) BuildController(controller *slinkyv1beta1.Controller) (*appsv1.StatefulSet, error)
- func (b *ControllerBuilder) BuildControllerConfig(controller *slinkyv1beta1.Controller) (*corev1.ConfigMap, error)
- func (b *ControllerBuilder) BuildControllerConfigExternal(controller *slinkyv1beta1.Controller) (*corev1.ConfigMap, error)
- func (b *ControllerBuilder) BuildControllerService(controller *slinkyv1beta1.Controller) (*corev1.Service, error)
- func (b *ControllerBuilder) BuildControllerServiceMonitor(controller *slinkyv1beta1.Controller) (*monitoringv1.ServiceMonitor, error)
- func (b *ControllerBuilder) BuildServiceMonitor(opts ServiceMonitorOpts, owner metav1.Object) (*monitoringv1.ServiceMonitor, error)
- type ServiceMonitorOpts
Constants ¶
View Source
const ( SlurmConfFile = "slurm.conf" CgroupConfFile = "cgroup.conf" GresConfFile = "gres.conf" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerBuilder ¶
type ControllerBuilder struct {
CommonBuilder common.CommonBuilder
// contains filtered or unexported fields
}
func New ¶
func New(c client.Client) *ControllerBuilder
func (*ControllerBuilder) BuildController ¶
func (b *ControllerBuilder) BuildController(controller *slinkyv1beta1.Controller) (*appsv1.StatefulSet, error)
func (*ControllerBuilder) BuildControllerConfig ¶
func (b *ControllerBuilder) BuildControllerConfig(controller *slinkyv1beta1.Controller) (*corev1.ConfigMap, error)
func (*ControllerBuilder) BuildControllerConfigExternal ¶
func (b *ControllerBuilder) BuildControllerConfigExternal(controller *slinkyv1beta1.Controller) (*corev1.ConfigMap, error)
BuildControllerConfigExternal returns a minimal slurm.conf for slurmrestd (lacks configless).
func (*ControllerBuilder) BuildControllerService ¶
func (b *ControllerBuilder) BuildControllerService(controller *slinkyv1beta1.Controller) (*corev1.Service, error)
func (*ControllerBuilder) BuildControllerServiceMonitor ¶
func (b *ControllerBuilder) BuildControllerServiceMonitor(controller *slinkyv1beta1.Controller) (*monitoringv1.ServiceMonitor, error)
func (*ControllerBuilder) BuildServiceMonitor ¶
func (b *ControllerBuilder) BuildServiceMonitor(opts ServiceMonitorOpts, owner metav1.Object) (*monitoringv1.ServiceMonitor, error)
type ServiceMonitorOpts ¶
type ServiceMonitorOpts struct {
Key types.NamespacedName
Metadata slinkyv1beta1.Metadata
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.