# Functions
AddSidecarVolumeMount is a helper to add a volumeMount to the sidecar unless its MountPath would conflict with another of the sidecar's existing volume mounts.
Apply will update the StepTemplate, Sidecars and Volumes declaration in ts so that the workspaces specified through wb combined with the declared workspaces in ts will be available for all Step and Sidecar containers in the resulting pod.
CreateVolumes will return a dictionary where the keys are the names of the workspaces bound in wb and the value is a newly-created Volume to use.
FindWorkspacesUsedByTask returns a set of all the workspaces that the TaskSpec uses.
ReplaceWorkspaceBindingsVars returns a new slice of WorkspaceBinding with references to parameters replaced, based on the mapping provided in replacements.
ValidateBindings will return an error if the bound workspaces in binds don't satisfy the declared workspaces in decls.
ValidateOnlyOnePVCIsUsed checks that a list of WorkspaceBinding uses only one persistent volume claim.
# Constants
AnnotationAffinityAssistantName is used to pass the instance name of an Affinity Assistant to TaskRun pods.
ComponentNameAffinityAssistant is the component name for an Affinity Assistant.
LabelComponent is used to configure PodAntiAffinity to other Affinity Assistants.
LabelInstance is used in combination with LabelComponent to configure PodAffinity for TaskRun pods.