katibconfig

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EarlyStoppingConfig added in v0.10.0

type EarlyStoppingConfig struct {
	Image           string            `json:"image"`
	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
}

EarlyStoppingConfig is the JSON early stopping structure in Katib config.

func GetEarlyStoppingConfigData added in v0.10.0

func GetEarlyStoppingConfigData(algorithmName string, client client.Client) (EarlyStoppingConfig, error)

GetEarlyStoppingConfigData gets the config data for the given early stopping algorithm name.

type MetricsCollectorConfig added in v0.10.0

type MetricsCollectorConfig struct {
	Image            string                      `json:"image"`
	ImagePullPolicy  corev1.PullPolicy           `json:"imagePullPolicy,omitempty"`
	Resource         corev1.ResourceRequirements `json:"resources,omitempty"`
	WaitAllProcesses *bool                       `json:"waitAllProcesses,omitempty"`
}

MetricsCollectorConfig is the JSON metrics collector structure in Katib config.

func GetMetricsCollectorConfigData

func GetMetricsCollectorConfigData(cKind common.CollectorKind, client client.Client) (MetricsCollectorConfig, error)

GetMetricsCollectorConfigData gets the config data for the given collector kind.

type SuggestionConfig added in v0.10.0

type SuggestionConfig struct {
	Image                     string                           `json:"image"`
	ImagePullPolicy           corev1.PullPolicy                `json:"imagePullPolicy,omitempty"`
	Resource                  corev1.ResourceRequirements      `json:"resources,omitempty"`
	ServiceAccountName        string                           `json:"serviceAccountName,omitempty"`
	VolumeMountPath           string                           `json:"volumeMountPath,omitempty"`
	PersistentVolumeClaimSpec corev1.PersistentVolumeClaimSpec `json:"persistentVolumeClaimSpec,omitempty"`
	PersistentVolumeSpec      corev1.PersistentVolumeSpec      `json:"persistentVolumeSpec,omitempty"`
}

SuggestionConfig is the JSON suggestion structure in Katib config.

func GetSuggestionConfigData

func GetSuggestionConfigData(algorithmName string, client client.Client) (SuggestionConfig, error)

GetSuggestionConfigData gets the config data for the given suggestion algorithm name.

Jump to

Keyboard shortcuts

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