This willl take a bunch of tekton templates resource and compile it as a single entity, Pipelinerun.
Project description
Tekton resources Bundle
A CLI to go over a bunch of Tekton yaml resources and bundle them as one in a Pipelinerun
and pipelineSpec
/taskSpec
.
It optionally can get argument to replace in tempalates.
USAGE
usage: tektonbundle [-h] directory [parameters [parameters ...]]
positional arguments:
directory Directory where to get all the yaml files.
parameters Add parameters to pass to templates.
optional arguments:
-h, --help show this help message and exit
USAGE
If you have a Pipelinerun that looks like this :
---
apiVersion: tekton.dev/v1beta1
kind: Pipelinerun
metadata:
name: pipeline-run
spec:
pipelineRef:
name: pipeline
and a Pipeline
named pipeline1 that looks like this :
---
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: pipeline
spec:
tasks:
- name: task
taskRef:
name: task
and finally a task that looks like this :
---
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: task
spec:
steps:
- name: step
image: scratch
It will 'bundle' everything as one, using pipelineSpec
and taskSpec
:
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
generateName: pipeline-run-
spec:
pipelineSpec:
tasks:
- name: task
taskSpec:
steps:
- image: scratch
name: step
It will change the name
as generateName
to be unique.
USAGE
You only need to point the tool to a directory and it will collect every .yaml
or .yml
in there and analyze them. It will then output the 'bundled' yaml file which you can pipe to
kubectl create
, i.e:
tektonbundle "/path/to/directory"|kubectl create -f-
- Free software: MIT license
======= History
0.1.0 (2020-10-20)
- First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for tektonbundle-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6bbf04357ca53e784029ce8259716300caa8ab21e40000c8fefa0d5e0292a56 |
|
MD5 | 971f648a5304ebe5304edafa28e18c29 |
|
BLAKE2b-256 | b185ccf22cf7de857bafbf7c033c5c387e8063f54069be531cfe843ec65d4bde |