utils

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAnnotation

func GetAnnotation(mlDep *machinelearningv1.SeldonDeployment, annotationKey string, fallback string) string

Get an annotation from the Seldon Deployment given by annotationKey or return the fallback.

func GetEngineEnvAnnotations

func GetEngineEnvAnnotations(mlDep *machinelearningv1.SeldonDeployment) []corev1.EnvVar

get annotations that start with seldon.io/engine

func GetEngineVarJson

func GetEngineVarJson(p *machinelearningv1.PredictorSpec) (string, error)

Translte the PredictorSpec p in to base64 encoded JSON to feed to engine in env var.

func GetNamespace

func GetNamespace(deployment *machinelearningv1.SeldonDeployment) string

Get the Namespace from the SeldonDeployment. Returns "default" if none found.

func IsEmptyExplainer

func IsEmptyExplainer(explainer *machinelearningv1.Explainer) bool

isEmptyExplainer will return true if the explainer can be considered empty (either by being nil or by having unset fields)

Types

This section is empty.

Jump to

Keyboard shortcuts

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