automount

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchesWorkspaceTarget added in v0.41.0

func MatchesWorkspaceTarget(
	obj k8sclient.Object,
	workspaceName string,
) bool

MatchesWorkspaceTarget checks whether a resource should be mounted to a given workspace based on include/exclude annotations. Both annotations can be used together: the resource is mounted when it matches the include pattern (or no include is set) and does not match the exclude pattern.

func ProvisionAutoMountResourcesInto

func ProvisionAutoMountResourcesInto(
	podAdditions *v1alpha1.PodAdditions,
	api sync.ClusterAPI,
	workspaceNamespace string,
	workspaceName string,
	persistentHome bool,
	workspaceDeployment *appsv1.Deployment,
) error

Types

type Resources added in v0.14.0

type Resources struct {
	Volumes       []corev1.Volume
	VolumeMounts  []corev1.VolumeMount
	EnvFromSource []corev1.EnvFromSource
}

func ProvisionGitConfiguration added in v0.14.0

func ProvisionGitConfiguration(
	api sync.ClusterAPI,
	workspaceNamespace string,
	workspaceName string,
	workspaceDeployment *appsv1.Deployment,
) (*Resources, error)

ProvisionGitConfiguration takes care of mounting git credentials and a gitconfig into a devworkspace.

Jump to

Keyboard shortcuts

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