deviceconfig

package
v0.0.0-...-e0c3458 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ready = "Ready"

	Errored = "Errored"

	ReasonModuleFailed = "ModuleFailed"

	ReasonDcgmExporterFailed = "DcgmExporterFailed"

	ReasonDcgmDaemonSetFailed = "DcgmDaemonSetFailed"

	ReasonNvidiaContainerToolkitDaemonSetFailed = "NvidiaContainerToolkitDaemonSetFailed"

	ReasonDriverNvidiaExporterServiceFailed = "DriverNvidiaExporterServiceFailed"

	ReasonDriverNvidiaExporterDaemonSetFailed = "DriverNvidiaExporterDaemonSetFailed"

	ReasonConflictingNodeSelector = "ConflictingNodeSelector"
)
View Source
const (
	DcgmImageEnvVar = "DCGM_IMAGE"

	DcgmExporterImageEnvVar = "DCGM_EXPORTER_IMAGE"

	DevicePluginImageEnvVar = "DEVICE_PLUGIN_IMAGE"

	DriverNvidiaImageBasenameEnvVar = "DRIVER_NVIDIA_IMAGE_BASENAME"

	DriverNvidiaExporterImageEnvVar = "DRIVER_NVIDIA_EXPORTER_IMAGE"

	DriverNvidiaValidationImageEnvVar = "DRIVER_NVIDIA_VALIDATION_IMAGE"

	NvidiaContainerToolkitImageEnvVar = "NVIDIA_CONTAINER_TOOLKIT_IMAGE"

	NvidiaContainerToolkitValidationImageEnvVar = "NVIDIA_CONTAINER_TOOLKIT_VALIDATION_IMAGE"
)

Variables

View Source
var Settings = ControllerSettings{}

Functions

This section is empty.

Types

type ControllerSettings

type ControllerSettings struct {
	DcgmImage string

	DcgmExporterImage string

	DevicePluginImage string

	DriverNvidiaImageBasename string

	DriverNvidiaExporterImage string

	DriverNvidiaValidationImage string

	NvidiaContainerToolkitImage string

	NvidiaContainerToolkitValidationImage string
}

func (*ControllerSettings) Load

func (r *ControllerSettings) Load() error

type Reconciler

type Reconciler struct {
	client.Client

	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

DeviceConfigReconciler reconciles a DeviceConfig object

func NewReconciler

func NewReconciler(
	client client.Client,
	scheme *runtime.Scheme,
	recorder record.EventRecorder) *Reconciler

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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