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 v1beta1.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 []v1beta1.WorkspaceBinding, ownerReference metav1.OwnerReference, namespace string) error
}
func NewPVCHandler ¶
func NewPVCHandler(clientset clientset.Interface, logger *zap.SugaredLogger) PvcHandler
Click to show internal directories.
Click to hide internal directories.