Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnnotateSource ¶
func AnnotateSource(evtID string, src *Source) func(*pipelinev1.PipelineRun)
AnnotateSource is a PipelineRun optionFunc which annodates the pipelinerun with the provided event ID and source URL.
func Convert ¶
func Convert(p *ci.Pipeline, log logger.Logger, config *Configuration, src *Source, volumeClaimName string, ctx *cel.Context, id string) (*pipelinev1.PipelineRun, error)
Convert takes a Pipeline definition, a name, source and volume claim name, and generates a TektonCD PipelineRun with an embedded Pipeline with the tasks to execute.
Types ¶
type Configuration ¶
type Configuration struct { ArchiverImage string // Executed for tasks that have artifacts to archive. ArchiveURL string // Passed to the archiver along with the artifact paths. PipelineRunPrefix string // Used in the generateName property of the created PipelineRun. DefaultServiceAccountName string // The default service account for created PipelineRuns. VolumeSize resource.Quantity // The size to create volumes as. }
Configuration provides options for the conversion to PipelineRuns.
type DSLConverter ¶
type DSLConverter struct {
// contains filtered or unexported fields
}
func NewDSLConverter ¶
func NewDSLConverter( scmClient git.SCM, pipelineClient pipelineclientset.Interface, volumeCreator volumes.Creator, m metrics.Interface, cfg *Configuration, namespace string, l logger.Logger) *DSLConverter
NewDSLConverter creates and returns a converter.
Click to show internal directories.
Click to hide internal directories.