I'm just starting to learn Tekton. I have a Tekton pipeline with the following, taken from this article:
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: clone-read
spec:
description: |
This pipeline clones a git repo, then echoes the README file to the stout.
params:
- name: repo-url
type: string
description: The git repo URL to clone from.
workspaces:
- name: shared-data
description: |
This workspace contains the cloned repo files, so they can be read by the
next task.
- name: git-credentials
description: My ssh credentials
tasks:
- name: fetch-source
taskRef:
kind: ClusterTask
name: git-clone
workspaces:
- name: output
workspace: shared-data
- name: ssh-directory
workspace: git-credentials
params:
- name: url
value: $(params.repo-url)
- name: revision
value: branch-name
- name: submodules
value: 'true'
- name: depth
value: '1'
- name: sslVerify
value: 'true'
- name: sparseCheckoutDirectories
value: /path/to/directory/
- name: deleteExisting
value: 'true'
- name: verbose
value: 'true'
- name: gitInitImage
value: >-
registry.redhat.io/openshift-pipelines/pipelines-git-init-rhel8@sha256:<hash>
- name: userHome
value: /tekton/home
- name: show-readme
runAfter: ["fetch-source"]
taskRef:
name: show-readme
workspaces:
- name: source
workspace: shared-data
When I run it, in the events tab it gets to these 2 events and just keeps posting them over and over. By the time I stopped it, they had been posted 119 times in 30 minutes:
Error: container has runAsNonRoot and image will run as root (pod: "clone-read-2ol4nq-fetch-source-7xfk6-pod-7w7jx_()", container: place-tools)
Container image "registry.redhat.io/openshift-pipelines/pipelines-entrypoint-rhel8@sha256:" already present on machine
How would I fix them?