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
()
| 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 |
| 46 | func 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. |
no test coverage detected