Documentation ¶
Index ¶
- Constants
- func DevWorkspaceIsFlattened(devworkspace *dw.DevWorkspaceTemplateSpec, ...) bool
- func FormatVariablesWarning(warn *variables.VariableWarning) string
- func ResolveDevWorkspace(workspace *dw.DevWorkspaceTemplateSpec, ...) (*dw.DevWorkspaceTemplateSpec, *variables.VariableWarning, error)
- type ResolverTools
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, contributions []dw.ComponentContribution) bool
func FormatVariablesWarning ¶ added in v0.9.0
func FormatVariablesWarning(warn *variables.VariableWarning) string
func ResolveDevWorkspace ¶
func ResolveDevWorkspace(workspace *dw.DevWorkspaceTemplateSpec, contributions []dw.ComponentContribution, tooling ResolverTools) (*dw.DevWorkspaceTemplateSpec, *variables.VariableWarning, 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 ¶
Click to show internal directories.
Click to hide internal directories.