volumeclaim

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// ReasonCouldntCreateWorkspacePVC indicates that a Pipeline expects a workspace from a
	// volumeClaimTemplate but couldn't create a claim.
	ReasonCouldntCreateWorkspacePVC = "CouldntCreateWorkspacePVC"
)

Variables

This section is empty.

Functions

func GetPersistentVolumeClaimName

func GetPersistentVolumeClaimName(claim *corev1.PersistentVolumeClaim, wb v1alpha1.WorkspaceBinding, owner metav1.OwnerReference) string

GetPersistentVolumeClaimName gets the name of PersistentVolumeClaim for a Workspace and PipelineRun or TaskRun. claim must be a PersistentVolumeClaim from a volumeClaimTemplate. The returned name must be consistent given the same workspaceBinding name and ownerReference name - because it is first used for creating a PVC and later, possibly several TaskRuns to lookup the PVC to mount.

Types

type PvcHandler

type PvcHandler interface {
	CreatePersistentVolumeClaimsForWorkspaces(wb []v1alpha1.WorkspaceBinding, ownerReference metav1.OwnerReference, namespace string) error
}

func NewPVCHandler

func NewPVCHandler(clientset clientset.Interface, logger *zap.SugaredLogger) PvcHandler

Jump to

Keyboard shortcuts

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