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

Snippets ClusterTask wrong #225

Closed
lstocchi opened this issue Mar 27, 2020 · 1 comment
Closed

Snippets ClusterTask wrong #225

lstocchi opened this issue Mar 27, 2020 · 1 comment
Assignees

Comments

@lstocchi
Copy link
Contributor

The snippet we have for ClusterTask is not in a correct form.
The current is:

apiVersion: tekton.dev/v1alpha1
kind: ClusterTask
metadata:
  name: foo
spec:
  steps:
  - args:
    - echo clustertask

but if you try to create the resource in the cluster you face this error

Error from server (InternalError): error when creating "/home/luca/Documents/f.yaml": Internal error occurred: admission webhook "webhook.tekton.dev" denied the request: mutation failed: missing field(s): steps.Image

A possible alternative could be:

spec:
  steps:
  - image: ubuntu
    script: |
      #!/usr/bin/env bash
      echo "Hello"

As always this is a minor issue but i think we should show a working snippets, so people who start using the extension and have no experience with Tekton can play and learn with it

@evidolob
Copy link
Collaborator

Resolved with #245

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

2 participants