Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unknown field "trigger" #1380

Closed
gireeshpunathil opened this issue Oct 4, 2019 · 4 comments
Closed

unknown field "trigger" #1380

gireeshpunathil opened this issue Oct 4, 2019 · 4 comments

Comments

@gireeshpunathil
Copy link

Expected Behavior

Pipeline run pipeline.tekton.dev/l-txt-pipeline-run created

Actual Behavior

Error from server (InternalError): error when creating "l.yaml": Internal error occurred: admission webhook "webhook.tekton.dev" denied the request: mutation failed: cannot decode incoming new object: json: unknown field "trigger"

Steps to Reproduce the Problem

apiVersion: tekton.dev/v1alpha1
kind: PipelineRun
metadata:
  name: l-txt-pipeline-run
spec:
  serviceAccount: core
  timeout: 1h0m0s
  pipelineRef:
    name: l-txt-pipeline
  trigger:
    type: manual
  resources:
  - name: input
    resourceref:
      name: input

apply this on an Openshift 4.1 cluster.

Additional Info

Openshift version: 4.1

kubernets version:

{Server Version: version.Info{Major:"1", Minor:"13+", GitVersion:"v1.13.4+8560dd6", GitCommit:"8560dd6", GitTreeState:"clean", BuildDate:"2019-07-31T21:30:54Z", GoVersion:"go1.11.6", Compiler:"gc", Platform:"linux/amd64"}

thanks!

@afrittoli
Copy link
Member

The trigger field has been removed some time ago since it was not used for any purpose.
Could you remove it from your PipelineRun and try again?

@gireeshpunathil
Copy link
Author

@afrittoli - thanks for the response! sure, it works fine.
Does this mean this will not be supported anymore? FWIW, OKD 3.1 continues to take this as a valid input, so!

thanks again!

@vdemeester
Copy link
Member

@gireeshpunathil yes this is not supported anymore. There is a problem on OKD 3.x (I hope you meant 3.11 because 3.1 is.. really old 😅).

Related issue for OKD: #1298 and #1113

@gireeshpunathil
Copy link
Author

@vdemeester - thanks for the clarification! yes, I meant 3.11.

issue clarified and resolved, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants