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

Tutorial dies on first Build #2

Open
john2exonets opened this issue Jan 24, 2023 · 0 comments
Open

Tutorial dies on first Build #2

john2exonets opened this issue Jan 24, 2023 · 0 comments

Comments

@john2exonets
Copy link

Cloned this and tried the first step....dies with errors:

root@controller:~/Tekton/tekton-tutorial# tkn task start build
? Value for param `contextDir` of type `string`? (Default is `.`) .
? Value for param `destinationImage` of type `string`? (Default is `$(outputs.resources.builtImage.url)`) $(outputs.resources.builtImage.url)
? Value for param `dockerFile` of type `string`? (Default is `Dockerfile`) Dockerfile
? Value for param `tlsVerify` of type `string`? (Default is `false`) false
Error: the API version in the data (tekton.dev/v1beta1) does not match the expected API version (tekton.dev/v1)

So....dolefully change the 'v1beta1' to 'v1', and still dies:

root@controller:~/Tekton/tekton-tutorial# nano tekton/2.tasks/build-task.yaml 
root@controller:~/Tekton/tekton-tutorial# kc apply -f tekton/2.tasks/build-task.yaml 
Error from server (BadRequest): error when creating "tekton/2.tasks/build-task.yaml": admission webhook "webhook.pipeline.tekton.dev" denied the request: mutation failed: cannot decode incoming new object: json: unknown field "resources"

Can't even get it to apply the change :(

Running latest Tekton:

root@controller:~/Tekton/tekton-tutorial# tkn version
Client version: 0.27.0
Pipeline version: v0.43.1
Triggers version: v0.22.0
Dashboard version: v0.31.0
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

1 participant