docker

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ImageTagEnvRegexFormat = "^\\S+:\\S+$"

Variables

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

func GetImageRepoFromEnv(envName string) (image string)

GetImageRepoFromEnv parse the image from environment variables, if it's not existed, return the default value

func GetImageTagFromEnv added in v0.6.0

func GetImageTagFromEnv(envName string) (tag string)

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

func ParseDockerImage(image string) (name string, tag string)

ParseDockerImage extracts repo and tag from image. An empty string is returned if no tag is discovered.

func ParseInitImage added in v0.6.0

func ParseInitImage(image, tag, imagePullPolicy, envName string) (string, string, string)

ParseInitImage parses the init image and image tag

Types

This section is empty.

Jump to

Keyboard shortcuts

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