home

package
v0.31.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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 the following criteria is met: - `persistUserHome` is enabled in the DevWorkspaceOperatorConfig - The storage strategy used by the DevWorkspace supports home persistence - None of the container components in the DevWorkspace mount a volume to `/home/user/`. - Persistent storage is required for the DevWorkspace Returns false otherwise.

func PersistUserHomeEnabled added in v0.29.0

func PersistUserHomeEnabled(workspace *common.DevWorkspaceWithConfig) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL