MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / GetWebhookServerImage

Function GetWebhookServerImage

internal/images/image.go:46–53  ·  view source on GitHub ↗

GetWebhookServerImage returns the image reference for the webhook server image. Returns the empty string if environment variable RELATED_IMAGE_devworkspace_webhook_server is not defined

()

Source from the content-addressed store, hash-verified

44// GetWebhookServerImage returns the image reference for the webhook server image. Returns
45// the empty string if environment variable RELATED_IMAGE_devworkspace_webhook_server is not defined
46func GetWebhookServerImage() string {
47 val, ok := os.LookupEnv(webhookServerImageEnvVar)
48 if !ok {
49 log.Error(fmt.Errorf("environment variable %s is not set", webhookServerImageEnvVar), "Could not get webhook server image")
50 return ""
51 }
52 return val
53}
54
55// GetPVCCleanupJobImage returns the image reference for the PVC cleanup job used to clean workspace
56// files from the common PVC in a namespace.

Callers 1

getSpecDeploymentFunction · 0.92

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected