Automated Dependency Updates for Tekton
Renovate supports updating Tekton dependencies.
Because file names for
tekton cannot be easily determined automatically, Renovate will not attempt to match any
tekton files by default. For details on how to extend a manager's
fileMatch value, please follow this link.
Tekton is an open-source cloud-native Continuous Integration and Continuous Delivery/Deployment solution.
Tekton uses Tasks to capture specific commands to be executed, and Pipelines to combine different Tasks, to achieve a goal, like building a container image. Tasks and Pipelines are defined as Kubernetes custom resources.
The Tekton documentation is a great resource to learn more about the overall concepts and how to start using it.
Distributing Tasks and Pipeline definitions¶
There are different ways to distribute Task and Pipeline definitions.
They can be created directly as a Kubernetes resource with standard tools like
Tasks and Pipeline definitions can also live outside the Kubernetes cluster and get fetched by Tekton when needed, this approach relies on Tekton resource references rather than the resource definition.
tekton manager focuses on providing updates to Tekton resource references.
Right now, Renovate's Tekton manager supports references that are Bundles and PipelinesAsCode with remote HTTP URL resolver. Read the Tekton Pipeline remote resolution docs for the different kinds of Tekton references and their corresponding resolvers.
Using a PipelinesAsCode remote URL reference¶
By specifying the annotation with a remote task based on the recommended way using git based versioning. How this can be used can be seen in the example below.
Using a Tekton Bundle reference¶
There are three ways to use a Tekton Bundle reference:
- Via the Tekton Bundles Resolver
- Via the
- Via the
Renovate's Tekton manager supports all the methods listed above.
Configuring images in Tekton Tasks¶
You can configure the container images that Tekton uses when it runs tasks. You may use these attributes to configure images in a:
- Task step
- Task stepTemplate
- Task sidecar
You can define Tekton Tasks within these Tekton resources:
Renovate's Tekton manager supports all the image attributes for the Tekton resources mentioned above.
Set your own
tekton manager does not have a default
This means it won't match any files until you set a
This is to avoid problems with unrelated YAML files since there is no well-established file name pattern for Tekton resources.
As an example, the following config matches all the YAML files in a repository:
"fileMatch": ["\\.yaml$", "\\.yml$"]
See our versioning documentation for details on the existing versioning rules and possible alterations.