dcgmexporter

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DcgmConfigMapName       = "dcgm-exporter-config-map"
	DcgmConfigMapVolumeName = "dcgm-config"
	DcgmMetricsIncludedCsv  = "dcp-metrics-included.csv"
	DcgmWebConfigYaml       = "web-config.yaml"
)
View Source
const (
	ComponentDcgmExporter = "dcgm-exporter"
)

Variables

This section is empty.

Functions

func Annotations

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

Annotations return the annotations for DcgmExporter 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.DcgmExporter) corev1.Container

Container builds a container for the given dcgm 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.DcgmExporter) 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.DcgmExporter) []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