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

tkn clustertask start <name> with --last flag shows no taskrun found associated with ClusterTask <name> #1331

Closed
vinamra28 opened this issue Mar 21, 2021 · 3 comments · Fixed by #1332
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@vinamra28
Copy link
Member

Versions and Operating System

  • Kubernetes version:

    Output of kubectl version:

    Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.1", 
    GitCommit:"c4d752765b3bbac2237bf87cf0b1c2e307844666", GitTreeState:"clean", BuildDate:"2020-12-18T12:09:25Z", 
    GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
    Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.2", 
    GitCommit:"faecb196815e248d3ecfb03c680a4507229c2a56", GitTreeState:"clean", BuildDate:"2021-01-21T01:11:42Z", 
    GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}  
    
  • 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}'

    $ tkn version
    Client version: 0.17.0
    Pipeline version: v0.22.0
    
  • Operating System:

    All
    

Expected Behavior

When doing a tkn clustertask start using --last flag a taskrun should be created which should use the values from the last run taskrun

$ tkn ct start yaml-lint -L
TaskRun started: yaml-lint-run-nxlmb

In order to track the TaskRun progress run:
tkn taskrun logs yaml-lint-run-nxlmb -f -n default

Actual Behavior

When doing a tkn clustertask start using --last flag a taskrun it is showing no taskrun found associated to that clustertask

$ tkn ct start yaml-lint -L
Error: no TaskRuns related to ClusterTask yaml-lint found in namespace default

Steps to Reproduce the Problem

  1. Create a ClusterTask
  2. Start a ClusterTask by creating a TaskRun
  3. Now restart the ClusterTask using tkn ct start and using the flag --last or -L

Additional Info

Since tektoncd/pipeline#3764 got merged so only tekton.dev/clusterTask would be present when a taskrun is created for a clustertask

/assign

@vinamra28 vinamra28 added the kind/bug Categorizes issue or PR as related to a bug. label Mar 21, 2021
@vinamra28
Copy link
Member Author

/assign

@vinamra28
Copy link
Member Author

/assign @vinamra28

@vinamra28
Copy link
Member Author

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant