Skip to content

Latest commit

 

History

History
 
 

bundleresolver

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Bundles Resolver

Resolver Type

This Resolver responds to type bundle.

Parameters

Param Name Description Example Value
serviceAccount The name of the service account to use when constructing registry credentials default
bundle The bundle url pointing at the image to fetch gcr.io/tekton-releases/catalog/upstream/golang-build:0.1
name The name of the resource to pull out of the bundle golang-build
kind The resource kind to pull out of the bundle task

Getting Started

Requirements

Install

  1. Install the Bundles resolver:
$ ko apply -f ./bundleresolver/config

Testing

Try creating a ResolutionRequest for a bundle:

$ cat <<EOF > rrtest.yaml
apiVersion: resolution.tekton.dev/v1alpha1
kind: ResolutionRequest
metadata:
  name: fetch-catalog-task
  labels:
    resolution.tekton.dev/type: bundle
spec:
  params:
    serviceAccount: default
    bundle: gcr.io/tekton-releases/catalog/upstream/golang-build:0.1
    name: golang-build
    kind: task
EOF

$ kubectl apply -f ./rrtest.yaml

$ kubectl get resolutionrequest -w fetch-catalog-task

You should shortly see the ResolutionRequest succeed and the content of the golang-build.yaml file base64-encoded in the object's status.data field.

Example PipelineRun

Unfortunately the Tekton Catalog does not publish pipelines at the moment. Here's an example PipelineRun that talks to a private registry but won't work unless you tweak the bundle field to point to a registry with a pipeline in it:

apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
  name: bundle-demo
spec:
  pipelineRef:
    resolver: bundles
    resource:
    - name: bundle
      value: 10.96.190.208:5000/simple/pipeline:latest
    - name: name
      value: hello-pipeline
    - name: kind
      value: pipeline
  params:
  - name: username
    value: "tekton pipelines"

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License.