Metadata-Version: 2.1
Name: tektonbundle
Version: 0.1.0
Summary: This willl take a bunch of tekton templates resource and compile it as a single entity, Pipelinerun.
Home-page: https://github.com/chmouel/tektonbundle
Author: Chmouel Boudjnah
Author-email: chmouel@chmouel.com
License: MIT license
Keywords: tektonbundle
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.5
Description-Content-Type: text/markdown

# Tekton resources Bundle

[![Codecov](https://img.shields.io/codecov/c/github/chmouel/tektonbundle/master.svg?style=flat-square)](https://codecov.io/gh/chmouel/tektonbundle)  [![License](https://img.shields.io/pypi/l/tektonbundle.svg?style=flat-square)](https://pypi.python.org/pypi/tektonbundle) [![PYPI](https://img.shields.io/pypi/v/tektonbundle.svg?style=flat-square)](https://pypi.python.org/pypi/tektonbundle)

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 :

```yaml
---
apiVersion: tekton.dev/v1beta1
kind: Pipelinerun
metadata:
    name: pipeline-run
spec:
    pipelineRef:
        name: pipeline
```

and a `Pipeline` named pipeline1 that looks like this :

```yaml
---
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
    name: pipeline
spec:
    tasks:
    - name: task
      taskRef:
        name: task
```

and finally a task that looks like this :

```yaml
---
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`:

```yaml
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:

```shell
tektonbundle "/path/to/directory"|kubectl create -f-
```

* Free software: MIT license


=======
History
=======

0.1.0 (2020-10-20)
------------------

* First release on PyPI.


