Documentation ¶
Index ¶
- func AddEnvVarToDeploymentContainers(deploy *appsv1.Deployment, envVar *v1.EnvVar)
- func GetContainerForDeployment(deploy *appsv1.Deployment, name string) *v1.Container
- func GetEnv(key, fallback string) string
- func GetEnvAsBool(key string, fallback bool) bool
- func GetPredictionPath(mlDep *machinelearningv1.SeldonDeployment) string
- func GetPredictiveUnitAsJson(params []machinelearningv1.Parameter) string
- func GetSeldonPodSpecForPredictiveUnit(p *machinelearningv1.PredictorSpec, name string) (*machinelearningv1.SeldonPodSpec, int)
- func HasEnvVar(envVars []v1.EnvVar, name string) bool
- func IsEmptyTLS(p *machinelearningv1.PredictorSpec) bool
- func MountSecretToDeploymentContainers(deploy *appsv1.Deployment, secretRefName string, containerMountPath string)
- func SetEnvVar(envVars []v1.EnvVar, newVar v1.EnvVar) (newEnvVars []v1.EnvVar)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEnvVarToDeploymentContainers ¶
func AddEnvVarToDeploymentContainers(deploy *appsv1.Deployment, envVar *v1.EnvVar)
Attempts to add environment variable but does NOT override if already existing
func GetContainerForDeployment ¶
func GetContainerForDeployment(deploy *appsv1.Deployment, name string) *v1.Container
func GetEnvAsBool ¶
Get an environment variable given by key or return the fallback.
func GetPredictionPath ¶
func GetPredictionPath(mlDep *machinelearningv1.SeldonDeployment) string
func GetPredictiveUnitAsJson ¶
func GetPredictiveUnitAsJson(params []machinelearningv1.Parameter) string
func GetSeldonPodSpecForPredictiveUnit ¶
func GetSeldonPodSpecForPredictiveUnit(p *machinelearningv1.PredictorSpec, name string) (*machinelearningv1.SeldonPodSpec, int)
func IsEmptyTLS ¶
func IsEmptyTLS(p *machinelearningv1.PredictorSpec) bool
func MountSecretToDeploymentContainers ¶
func MountSecretToDeploymentContainers(deploy *appsv1.Deployment, secretRefName string, containerMountPath string)
Create a volume from the secret provided and mounts it to all the containers of deployment
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.