Documentation ¶
Index ¶
- Constants
- Variables
- func GetImagePullSecretsFromEnv(envName string) []corev1.LocalObjectReference
- func GetImageRepoFromEnv(envName string) (image string)
- func GetImageTagFromEnv(envName string) (tag string)
- func GetWorkerImage(client client.Client, datasetName string, runtimeType string, namespace string) (imageName string, imageTag string)
- func ParseDockerImage(image string) (name string, tag string)
- func ParseInitImage(image, tag, imagePullPolicy, envName string) (string, string, string)
Constants ¶
View Source
const ImageTagEnvRegexFormat = "^\\S+:\\S+$"
Variables ¶
View Source
var ImageTagEnvRegex = regexp.MustCompile(ImageTagEnvRegexFormat)
Functions ¶
func GetImagePullSecretsFromEnv ¶ added in v0.8.2
func GetImagePullSecretsFromEnv(envName string) []corev1.LocalObjectReference
get docker pull secrets from environment variables, if it's not existed, return [] image pull secret format in ENV: str1,str2,str3
func GetImageRepoFromEnv ¶ added in v0.6.0
GetImageRepoFromEnv parse the image from environment variables, if it's not existed, return the default value
func GetImageTagFromEnv ¶ added in v0.6.0
GetImageTagFromEnv parse the image tag from environment variables, if it's not existed, return the default value
func GetWorkerImage ¶
func GetWorkerImage(client client.Client, datasetName string, runtimeType string, namespace string) (imageName string, imageTag string)
GetWorkerImage get the image of alluxio worker from alluxioruntime, env or default TODO: Get image by calling runtime controller interface instead of reading runtime object
func ParseDockerImage ¶
ParseDockerImage extracts repo and tag from image. An empty string is returned if no tag is discovered.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.