Questions tagged [tekton]

Tekton is a powerful and flexible open-source framework for creating CI/CD systems, allowing developers to build, test, and deploy across cloud providers and on-premise systems.

156 questions
14
votes
2 answers

What does adding a secret to a ServiceAccount in Kubernetes do?

I am reading the tekton docs on authentication it explains that two things are needed to do authentication Create a secret docs give example below apiVersion: v1 kind: Secret metadata: name: basic-user-pass annotations: tekton.dev/git-0:…
ams
  • 60,316
  • 68
  • 200
  • 288
6
votes
2 answers

Pass ENV vars from one Tekton Task step to the next?

So Tekton Pipelines allows you to create individual tasks and connect them into cloud native ci/cd pipelines. It's pretty cool. But as you can imagine, so things you would think are easy, are pretty tricky. For example, I'm trying to run a Kaniko…
4m1r
  • 12,234
  • 9
  • 46
  • 58
4
votes
1 answer

How does Tekton handle parallel tasks that access the same workspace?

In Tekton it's possible to set up a pipeline with multiple tasks that can (potentially) run in parallel and that access the same workspace. However, the documentation is not completely clear on what happens in this situation. Does it "lock" the…
Hilda Hay
  • 87
  • 3
4
votes
1 answer

what is the difference between openshift buildconfig and pipeline

I am new to devops and reading openshift docs about this. Seems both buildconfig and pipeline(tekton in openshift 4.6) can achieve source-to-image process and triggered by git webhooks. So what is the difference between openshift buildconfig and…
yangyang
  • 243
  • 1
  • 5
  • 10
4
votes
2 answers

Continue Tekton pipeline after failure (similar to jenkins pipeline catchError behaviour)

I have a pipeline where I want to: provision some resources, run some tests, tear down the resources. I want the tear down task, in step 3, to run regardless of whether tests passed or failed, in step 2. As far as I’ve understoood runAfter only…
gsaslis
  • 3,066
  • 2
  • 26
  • 32
3
votes
1 answer

Trigger pipeline from another pipeline in Tekton

I have 2 Tekton Pipelines A and B. I want to trigger execution of pipeline B when pipeline A completes. My current workaround is to have Task in the end of pipeline A which sends REST request to Tekton's EventListener (which is already part of my…
Sergey Prokofiev
  • 1,815
  • 1
  • 12
  • 21
3
votes
1 answer

Is there any way to pass params between task in tekton?

I have two different tasks which I want to pass the taskRun name of the first task to the second task. I wonder if there is a way I can do that.
Jane
  • 151
  • 3
  • 12
3
votes
2 answers

Tekton pipeline cannot create file in the workspace directory unless running as root

I want to create a file in the workspace directory. But I can only do that if I run as root with securityContext: runAsUser: 0 if I leave it blank or want to run as user 1001 it gives me touch: cannot touch…
3
votes
2 answers

How to wait for tekton pipelinRun conditions

I have the following code within a gitlab pipeline which results in some kind of race condition: kubectl apply -f pipelineRun.yaml tkn pipelinerun logs -f pipeline-run The tkn command immediately exits, since the pipelineRun object is not yet…
mhubig
  • 73
  • 9
3
votes
1 answer

"jx boot" fails in "openshift-3.11" provider with "tekton pipeline controller" pod into "crashloopbackoff" state

Summary: I already have a setup of "static jenkins server" type jenkins-x running in openshift 3.11 provider. The cluster was crashed and I want to reinstall jenkins-x in my cluster but there is no support for "static jenkins server" now. So I am…
Bhavani Prasad
  • 1,079
  • 1
  • 9
  • 26
2
votes
2 answers

Tektons git-clone is ignoring my ssh config

I'm following the Clone a git repository with Tekton tutorial and try to clone a git repo using ssh. The pipeline works fine, using HTTPS but for ssh it's complaining that the ssh configuration is missing. From the logs I can see that it finds the…
BetaRide
  • 16,207
  • 29
  • 99
  • 177
2
votes
1 answer

Getting parameter appears more than once: spec.params[DOCKER_IMAGE_NAME] error while running the pipeline

Getting error like this: Pipeline could not run, resource failed to apply - Kind: "Task", Name: "versions-push-task" admission webhook "validation.webhook.pipeline.tekton.dev" denied the request: validation failed: parameter appears more than…
2
votes
3 answers

How do I access a private Container Registry from IBM Cloud Delivery Pipeline (Tekton, dockerconfigjson)

I am trying to use a container image from a private container registry in one of my tasks. apiVersion: tekton.dev/v1beta1 kind: Task metadata: name: echo-hello-world spec: steps: - name: echo image: de.icr.io/reporting/status:latest …
habercde
  • 161
  • 1
  • 10
2
votes
1 answer

argocd app create in CI pipeline (GitHub Actions, Tekton, ...) throws "PermissionDenied desc = permission denied: applications, create, default/myapp"

From our Tekton pipeline we want to use ArgoCD CLI to do a argocd app create and argocd app sync dynamically based on the app that is build. We created a new user as described in the docs by adding a accounts.tekton: apiKey to the argocd-cm…
jonashackt
  • 12,022
  • 5
  • 67
  • 124
2
votes
0 answers

How do I automatically apply updates to Tekton resources stored in a git repo?

As background, I am in the process of upgrading a few projects from Jenkins and Gitlab CI based CI to use Tekton. In those projects, it is common to see a Jenkinsfile or .gitlab-ci.yml defining what the pipeline is to run for the project. Those…
1
2 3
10 11