Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPersistentHomeVolume ¶
func AddPersistentHomeVolume(workspace *common.DevWorkspaceWithConfig) (*v1alpha2.DevWorkspaceTemplateSpec, error)
Returns a modified copy of the given DevWorkspace's Template Spec which contains an additional Devfile volume 'persistentHome' that is mounted to `/home/user/` for every container component defined in the DevWorkspace. An error is returned if the addition of the 'persistentHome' volume would result in an invalid DevWorkspace.
func NeedsPersistentHomeDirectory ¶
func NeedsPersistentHomeDirectory(workspace *common.DevWorkspaceWithConfig) bool
Returns true if `persistUserHome` is enabled in the DevWorkspaceOperatorConfig and none of the container components in the DevWorkspace mount a volume to `/home/user/`. Returns false otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.