katibconfig

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKatibConfigNil         = fmt.Errorf("failed to parse katib-config.yaml in ConfigMap: %s", consts.KatibConfigMapName)
	ErrInvalidGVKFormat       = errors.New("invalid GroupVersionKinds")
	ErrTrialResourcesAreEmpty = errors.New("trialResources are empty")
)

Functions

func GetEarlyStoppingConfigData added in v0.10.0

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

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

func GetInitConfigData added in v0.16.0

func GetInitConfigData(scheme *runtime.Scheme, katibCfgPath string) (configv1beta1.InitConfig, error)

GetInitConfigData gets the init config data.

func GetMetricsCollectorConfigData

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

GetMetricsCollectorConfigData gets the config data for the given collector kind.

func GetSuggestionConfigData

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

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

func TrialResourcesToGVKs added in v0.16.0

func TrialResourcesToGVKs(trialResources []string) ([]schema.GroupVersionKind, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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