neuronmonitor

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NeuronConfigMapName       = "neuron-monitor-config-map"
	NeuronConfigMapVolumeName = "neuron-monitor-config"
	NeuronMonitorJson         = "monitor.json"
)
View Source
const (
	ComponentNeuronExporter = "neuron-monitor"
)

Variables

This section is empty.

Functions

func Annotations

func Annotations(instance v1alpha1.NeuronMonitor) map[string]string

Annotations return the annotations for NeuronMonitor pod.

func Build

func Build(params manifests.Params) ([]client.Object, error)

Build creates the manifest for the exporter resource.

func ConfigMap

func ConfigMap(params manifests.Params) (*corev1.ConfigMap, error)

func Container

func Container(cfg config.Config, logger logr.Logger, exporter v1alpha1.NeuronMonitor) corev1.Container

Container builds a container for the given neuron monitor exporter.

func DaemonSet

func DaemonSet(params manifests.Params) *appsv1.DaemonSet

DaemonSet builds the deployment for the given instance.

func Service

func Service(params manifests.Params) (*corev1.Service, error)

func ServiceAccount

func ServiceAccount(params manifests.Params) *corev1.ServiceAccount

ServiceAccount returns the service account for the given instance.

func ServiceAccountName

func ServiceAccountName(instance v1alpha1.NeuronMonitor) string

ServiceAccountName returns the name of the existing or self-provisioned service account to use for the given instance.

func Volumes

func Volumes(exporter v1alpha1.NeuronMonitor) []corev1.Volume

Volumes builds the volumes for the given instance, including the config map volume.

Types

This section is empty.

Jump to

Keyboard shortcuts

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