utils

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContainerForDeployment

func GetContainerForDeployment(deploy *appsv1.Deployment, name string) *v1.Container

func GetContainerForPredictiveUnit

func GetContainerForPredictiveUnit(p *machinelearningv1alpha2.PredictorSpec, name string) *v1.Container

func GetPort

func GetPort(name string, ports []v1.ContainerPort) *v1.ContainerPort

func GetPredictiveUnitAsJson

func GetPredictiveUnitAsJson(params []machinelearningv1alpha2.Parameter) string

func HasEnvVar

func HasEnvVar(envVars []v1.EnvVar, name string) bool

func SetEnvVar

func SetEnvVar(envVars []v1.EnvVar, newVar v1.EnvVar) (newEnvVars []v1.EnvVar)

func SetImageNameForPrepackContainer

func SetImageNameForPrepackContainer(pu *machinelearningv1alpha2.PredictiveUnit, c *v1.Container)

Types

This section is empty.

Jump to

Keyboard shortcuts

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