util

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: 9 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertObjectToUnstructured

func ConvertObjectToUnstructured(in interface{}) (*unstructured.Unstructured, error)

ConvertObjectToUnstructured returns Unstructured from Kubernetes Object value

func ConvertStringToUnstructured

func ConvertStringToUnstructured(in string) (*unstructured.Unstructured, error)

ConvertStringToUnstructured returns Unstructured from string value

func ConvertUnstructuredToString

func ConvertUnstructuredToString(in *unstructured.Unstructured) (string, error)

ConvertUnstructuredToString returns string from Unstructured value

func GetAlgorithmEndpoint

func GetAlgorithmEndpoint(s *suggestionsv1beta1.Suggestion) string

GetAlgorithmEndpoint returns the endpoint of the Suggestion service with HP or NAS algorithm

func GetEarlyStoppingEndpoint added in v0.10.0

func GetEarlyStoppingEndpoint(s *suggestionsv1beta1.Suggestion) string

GetEarlyStoppingEndpoint returns the endpoint of the EarlyStopping service

func GetSuggestionDeploymentName added in v0.10.0

func GetSuggestionDeploymentName(s *suggestionsv1beta1.Suggestion) string

GetSuggestionDeploymentName returns name for the suggestion's deployment

func GetSuggestionPersistentVolumeClaimName added in v0.10.0

func GetSuggestionPersistentVolumeClaimName(s *suggestionsv1beta1.Suggestion) string

GetSuggestionPersistentVolumeClaimName returns name for the suggestion's PVC

func GetSuggestionPersistentVolumeName added in v0.10.0

func GetSuggestionPersistentVolumeName(s *suggestionsv1beta1.Suggestion) string

GetSuggestionPersistentVolumeName returns name for the suggestion's PV

func GetSuggestionRBACName added in v0.10.0

func GetSuggestionRBACName(s *suggestionsv1beta1.Suggestion) string

GetSuggestionRBACName returns name for the suggestion's ServiceAccount, Role and RoleBinding

func GetSuggestionServiceName added in v0.10.0

func GetSuggestionServiceName(s *suggestionsv1beta1.Suggestion) string

GetSuggestionServiceName returns name for the suggestion's service

func SuggestionAnnotations

func SuggestionAnnotations(instance *suggestionsv1beta1.Suggestion) map[string]string

SuggestionAnnotations returns the expected suggestion annotations.

func SuggestionLabels

func SuggestionLabels(instance *suggestionsv1beta1.Suggestion) map[string]string

SuggestionLabels returns the expected suggestion labels.

func TrialLabels

func TrialLabels(instance *experimentsv1beta1.Experiment) map[string]string

TrialLabels returns the expected trial labels.

Types

This section is empty.

Jump to

Keyboard shortcuts

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