Documentation ¶
Index ¶
- Constants
- func Annotations(instance v1alpha1.DcgmExporter) map[string]string
- func Build(params manifests.Params) ([]client.Object, error)
- func ConfigMap(params manifests.Params) (*corev1.ConfigMap, error)
- func Container(cfg config.Config, logger logr.Logger, exporter v1alpha1.DcgmExporter) corev1.Container
- func DaemonSet(params manifests.Params) *appsv1.DaemonSet
- func Service(params manifests.Params) (*corev1.Service, error)
- func ServiceAccount(params manifests.Params) *corev1.ServiceAccount
- func ServiceAccountName(instance v1alpha1.DcgmExporter) string
- func Volumes(exporter v1alpha1.DcgmExporter) []corev1.Volume
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 Container ¶
func Container(cfg config.Config, logger logr.Logger, exporter v1alpha1.DcgmExporter) corev1.Container
Container builds a container for the given dcgm exporter.
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.