Pipeline: PipelineRun definition expects pipelinerun.spec.trigger.type

Created on 21 May 2019  路  8Comments  路  Source: tektoncd/pipeline

Expected Behavior

Following the examples and documentation, was not able to create a PipelineRun if pipelinerun.spec.trigger.type is not specified.

Actual Behavior

Error from server (InternalError): error when creating "pipelinerun.yaml": Internal error occurred: admission webhook "webhook.tekton.dev" denied the request: mutation failed: invalid value: : pipelinerun.spec.trigger.type

Steps to Reproduce the Problem

  1. Create a PipelineRun without
spec:
  trigger:
    type: manual

Additional Info

Using lastest release.

Most helpful comment

@jotacamou
Please check the age of pods in name space: tekton-pipelines, they just removed trigger several days ago.
Use the master cannot reproduce this issue.

All 8 comments

@jotacamou
Please check the age of pods in name space: tekton-pipelines, they just removed trigger several days ago.
Use the master cannot reproduce this issue.

Confirmed. Not an issue on master branch however present on v0.3.1. Please close, thank you!

Glad you got it working! Thanks for opening the issue @jotacamou :D

This error still exists with the tutorial doc as I get this error when I deploy the pipelineRun

kubectl  apply -f pipelineRun.yml -n tutorial
Error from server (InternalError): error when creating "pipelineRun.yml": Internal error occurred: admission webhook "webhook.tekton.dev" denied the request: mutation failed: invalid value: : pipelinerun.spec.trigger.type

@cmoulliard which version of tekton pipeline did you deploy ?

Getting the same error with the latest tekton release v0.3.1
If this change is only in master, how can I install tekton from a master branch ?
I am using the installation instruction from the doc :
kubectl apply --filename https://storage.googleapis.com/tekton-releases/latest/release.yaml

Error when running pipeline (without triggers):
Error from server (InternalError): error when creating "pipelinerun.yaml": Internal error occurred: admission webhook "webhook.tekton.dev" denied the request: mutation failed: invalid value: : pipelinerun.spec.trigger.type

@sarnaudova
Please take a look this: https://github.com/tektoncd/pipeline/blob/master/DEVELOPMENT.md
Use ko to apply the master to the cluster.

We should have a 0.4 release coming out this week @sarnaudova ! Sorry for the difficulty :(

Was this page helpful?
0 / 5 - 0 ratings