Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DWTSupportedNamespacesAnnotation defines additional namespaces from which a DevWorkspace can import a DevWorkspaceTemplate. // By default, importing templates from the same namespace as the DevWorkspace is allowed. // Options are: // - '*': allow importing by all DevWorkspaces on the cluster // - 'namespaceA,namespaceB,namespaceC': Allow importing by DevWorkspaces in list of specific namespaces // If the annotation does not exist or is empty, only DevWorkspaces in the same namespace as the template can reference it. DWTSupportedNamespacesAnnotation = "controller.devfile.io/allow-import-from" )
Variables ¶
This section is empty.
Functions ¶
func DevWorkspaceIsFlattened ¶
func DevWorkspaceIsFlattened(devworkspace *dw.DevWorkspaceTemplateSpec) bool
func ResolveDevWorkspace ¶
func ResolveDevWorkspace(workspace *dw.DevWorkspaceTemplateSpec, tooling ResolverTools) (*dw.DevWorkspaceTemplateSpec, error)
ResolveDevWorkspace takes a devworkspace and returns a "resolved" version of it -- i.e. one where all plugins and parents are inlined as components.
Types ¶
type ResolverTools ¶
type ResolverTools struct { WorkspaceNamespace string Context context.Context K8sClient client.Client InternalRegistry registry.InternalRegistry HttpClient network.HTTPGetter }
Click to show internal directories.
Click to hide internal directories.