1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-23 06:08:46 +00:00
catalog/task/pluto/0.1
vinamra28 e763a4473e Use latest git-clone in Task's tests
With git-clone version 0.8 and onwards, it started running as non-root
and GKE clusters were having some issues, so, we temporarily moved all
tasks to use git-clone version 0.7. Ref: https://github.com/tektoncd/catalog/pull/1079

Since we have now moved to kind clusters in our CI, this issue is now
resolved and thus moving all tasks to use latest version of git-clone

Signed-off-by: vinamra28 <jvinamra776@gmail.com>
2023-09-22 09:32:22 +01:00
..
tests Use latest git-clone in Task's tests 2023-09-22 09:32:22 +01:00
pluto.yaml Fix pluto task version 0.1 2022-04-01 14:14:24 +01:00
README.md [TEP-0110] Update Tekton Catalog installation instructions 2022-08-16 16:25:52 +01:00

Pluto Task

Pluto is a utility to help users find deprecated Kubernetes apiVersions in their code repositories and their helm releases.

Install the Task

Install pluto task:

kubectl apply -f https://api.hub.tekton.dev/v1/resource/tekton/task/pluto/0.1/raw

Parameters

  • ARGS: args to execute which are appended to pluto e.g. detect-files -d pkg/finder/testdata (default: help)

Workspaces

  • source : A workspace that contains the helm chart/resources that will be processed.

Platforms

The Task can be run on linux/amd64 platform.

Usage

---
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
  name: pluto-pipeline
spec:
  workspaces:
    - name: shared-workspace
  params:
    - name: git-url
      type: string
      description: url of the git repo for the code of deployment
      default: https://github.com/garethahealy/pluto-blog.git
    - name: git-revision
      type: string
      description: revision to be used from repo of the code for deployment
      default: "main"
    - name: pluto-args
      type: array
      description: pluto commands to run
      default:
        - detect-files
        - -d
        - charts/v1beta1/templates
  tasks:
    - name: fetch-repository
      taskRef:
        name: git-clone
        kind: ClusterTask
      workspaces:
        - name: output
          workspace: shared-workspace
      params:
        - name: url
          value: $(params.git-url)
        - name: subdirectory
          value: ""
        - name: deleteExisting
          value: "true"
        - name: revision
          value: $(params.git-revision)
    - name: pluto
      taskRef:
        name: pluto
      runAfter:
        - fetch-repository
      workspaces:
        - name: source
          workspace: shared-workspace
      params:
        - name: ARGS
          value:
          - $(params.pluto-args)
---
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
  name: pluto-pipeline-run
spec:
  pipelineRef:
    name: pluto-pipeline
  workspaces:
    - name: shared-workspace
      volumeClaimTemplate:
        spec:
          accessModes:
            - ReadWriteOnce
          resources:
            requests:
              storage: 500Mi