package
0.9.2
Repository: https://github.com/mattmoor/pipeline.git
Documentation: pkg.go.dev

# Functions

CleanupArtifactStorage will delete the PipelineRun's artifact storage PVC if it exists.
ConfigMapNeedsPVC checks if the possibly-nil config map passed to it is configured to use a bucket for artifact storage, returning true if instead a PVC is needed.
GetArtifactStorage returns the storage interface to enable consumer code to get a container step for copy to/from storage.
GetPVCName returns the name that should be used for the PVC for a PipelineRun.
GetPVCSpec returns the PVC to create for a given PipelineRun.
InitializeArtifactStorage will check if there is there is a bucket configured, create a PVC or return nil if no storage is required.
NewArtifactBucketConfigFromConfigMap creates a Bucket from the supplied ConfigMap.

# Constants

BucketConfigName is the name of the configmap containing all customizations for the storage bucket.
BucketLocationKey is the name of the configmap entry that specifies loction of the bucket.
BucketServiceAccountFieldName is the name of the configmap entry that specifies the field name that should be used for the service account.
BucketServiceAccountSecretKey is the name of the configmap entry that specifies the secret key that will have a value with the service account json with access to the bucket.
BucketServiceAccountSecretName is the name of the configmap entry that specifies the name of the secret that will provide the servie account with bucket access.
DefaultPvcSize is the default size of the PVC to create.
PvcConfigName is the name of the configmap containing all customizations for the storage PVC.
PvcSizeKey is the name of the configmap entry that specifies the size of the PVC to create.
PvcStorageClassNameKey is the name of the configmap entry that specifies the storage class of the PVC to create.

# Structs

ArtifactStorageNone is used when no storage is needed.

# Interfaces

ArtifactStorageInterface is an interface to define the steps to copy an pipeline artifact to/from temporary storage.