Documentation ¶
Index ¶
- Constants
- func Annotations(instance v1alpha1.NeuronMonitor) 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.NeuronMonitor) 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.NeuronMonitor) string
- func Volumes(exporter v1alpha1.NeuronMonitor) []corev1.Volume
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 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 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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.