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

Question: Is TaskRunResult auto populated? #2553

Closed
poy opened this issue May 5, 2020 · 2 comments
Closed

Question: Is TaskRunResult auto populated? #2553

poy opened this issue May 5, 2020 · 2 comments

Comments

@poy
Copy link
Contributor

poy commented May 5, 2020

Expected Behavior

TaskRunResult is populated after a TaskRun completes.

Actual Behavior

TaskRunResult isn't in TaskRun's status

Steps to Reproduce the Problem

  1. Create TaskRun
  2. Use kubectl to look at TaskRunStatus

Additional Info

  • Kubernetes version:

    Output of kubectl version:

    (paste your output here)
    
  • Tekton Pipeline version:

    Output of tkn version or kubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'

v0.10.2

@ghost
Copy link

ghost commented May 5, 2020

I don't think that TaskResults were in a user-facing state when the 0.10 branch was released. We had implemented some of the internal types and changes to Step entrypoints but I'm reasonably sure we hadn't yet exposed them for use. It's mentioned as a new feature in our 0.11.0-rc1 release notes here: https://github.com/tektoncd/pipeline/releases/tag/v0.11.0-rc1 whereas in older 0.10 we mention only #1888 which was an internal-only PR.

In 0.11+ Task Results are written by Steps to files at path /tekton/results/<name of result> and then the contents of those files are exposed as the Task Results in the TaskRun's Status.

@poy
Copy link
Contributor Author

poy commented May 5, 2020

Good deal. I'll upgrade to v0.11.x

@poy poy closed this as completed May 5, 2020
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