Skip to content

Very early tool for archiving Tekton PipelineRuns and TaskRuns.

License

Notifications You must be signed in to change notification settings

bigkevmcd/tekton-archiver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tekton-archiver

This is pre-alpha code

Watches PipelineRuns and archives the output upon completion, currently only to AWS S3.

Installation

A Deployment is provided, you can modify to build your own image.

Out of the box, this uses the S3 Archiver to archive logs, to use this, you'll need to create a secret with your credentials.

If you want to keep your bucket and region out of the secret, you'll need to edit the default deployment.yaml.

$ kubectl create secret generic archiver-secret --from-literal=AWS_ACCESS_KEY_ID=$AWS_SECRET_ACCESS_KEY --from-literal=AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY --from-literal=BUCKET_NAME=$AWS_BUCKET --from-literal=AWS_REGION=$AWS_REGION

Labelling PipelineRuns

Currently, the archiver only archives logs that have a label with "pipelinerun": "archive"

apiVersion: tekton.dev/v1alpha1
kind: PipelineRun
metadata:
  name: demo-pipelinerun
  labels:
    "pipelinerun": "archive"
spec:

Testing

$ go test ./...

About

Very early tool for archiving Tekton PipelineRuns and TaskRuns.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published