Documentation ¶
Index ¶
- Constants
- Variables
- 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 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.