Documentation
¶
Index ¶
- func GetAnnotation(mlDep *machinelearningv1.SeldonDeployment, annotationKey string, ...) string
- func GetEngineEnvAnnotations(mlDep *machinelearningv1.SeldonDeployment) []corev1.EnvVar
- func GetEngineVarJson(p *machinelearningv1.PredictorSpec) (string, error)
- func GetNamespace(deployment *machinelearningv1.SeldonDeployment) string
- func IsEmptyExplainer(explainer *machinelearningv1.Explainer) bool
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.
Click to show internal directories.
Click to hide internal directories.