Documentation
¶
Overview ¶
Package images is intended to support deploying the operator on restricted networks. It contains utilities for translating images referenced by environment variables to regular image references, allowing images that are defined by a tag to be replaced by digests automatically. This allows all images used by the controller to be defined as environment variables on the controller deployment.
All images defined must be referenced by an environment variable of the form RELATED_IMAGE_<name>. Functions in this package can be called to replace references to ${RELATED_IMAGE_<name>} with the corresponding environment variable.
Index ¶
- func FillPluginEnvVars(pluginDWT *dw.DevWorkspaceTemplate) (*dw.DevWorkspaceTemplate, error)
- func GetAsyncStorageServerImage() string
- func GetAsyncStorageSidecarImage() string
- func GetPVCCleanupJobImage() string
- func GetProjectClonerImage() string
- func GetWebTerminalToolingImage() string
- func GetWebhookServerImage() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FillPluginEnvVars ¶
func FillPluginEnvVars(pluginDWT *dw.DevWorkspaceTemplate) (*dw.DevWorkspaceTemplate, error)
FillPluginEnvVars replaces plugin devworkspaceTemplate .spec.components[].container.image environment variables of the form ${RELATED_IMAGE_*} with values from environment variables with the same name.
Returns error if any referenced environment variable is undefined.
func GetAsyncStorageServerImage ¶ added in v0.2.0
func GetAsyncStorageServerImage() string
func GetAsyncStorageSidecarImage ¶ added in v0.2.0
func GetAsyncStorageSidecarImage() string
func GetPVCCleanupJobImage ¶
func GetPVCCleanupJobImage() string
GetPVCCleanupJobImage returns the image reference for the PVC cleanup job used to clean workspace files from the common PVC in a namespace.
func GetProjectClonerImage ¶ added in v0.4.0
func GetProjectClonerImage() string
func GetWebTerminalToolingImage ¶
func GetWebTerminalToolingImage() string
GetWebTerminalToolingImage returns the image reference for the default web tooling image. Returns the empty string if environment variable RELATED_IMAGE_web_terminal_tooling is not defined
func GetWebhookServerImage ¶
func GetWebhookServerImage() string
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
Types ¶
This section is empty.