Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-6364

Ecosystem - ARGS in task tkn don't work

XMLWordPrintable

    • 2
    • Pipelines Sprint TekShift 13

      Description of problem:

      When a user sets ARGS param in tkn task using cluster resolver, task run shows command usage instead of executing the command.

      It's a regression - it worked fine in 1.15.0, broken in 1.16.0

      Workaround

      Prerequisites (if any, like setup, operators/versions):

      1.16.0

      Steps to Reproduce

      apiVersion: tekton.dev/v1
      kind: PipelineRun
      metadata:
        name: tkn-version-run
      spec:
        pipelineSpec:
          tasks:
          - name: run-tkn
            taskRef:
              resolver: cluster
              params:
              - name: kind
                value: task
              - name: name
                value: tkn
              - name: namespace
                value: openshift-pipelines
            params:
            - name: ARGS
              value:
                - "version"
        timeouts: 
          pipeline: 5m
      

       

      Actual results:

      /scripts/tkn-client.sh
      /scripts/tkn-common.sh
      Running Script /scripts/tkn-client.sh
      CLI for tekton pipelines
      
      Usage:
      tkn [flags]
      tkn [command]
      
      
      Available Commands:
        bundle*               Manage Tekton Bundles (experimental)
        chain                 Manage Chains
        clustertask           Manage ClusterTasks
        clustertriggerbinding Manage ClusterTriggerBindings
        customrun             Manage CustomRuns
        eventlistener         Manage EventListeners
        hub                   Interact with tekton hub
        pipeline              Manage pipelines
        pipelinerun           Manage PipelineRuns
        task                  Manage Tasks
        taskrun               Manage TaskRuns
        triggerbinding        Manage TriggerBindings
        triggertemplate       Manage TriggerTemplates
      
      Other Commands:
        completion            Prints shell completion scripts
        version               Prints version information
      
      Available Plugins:
        pac
      
      Flags:
        -h, --help   help for tkn
      
      Use "tkn [command] --help" for more information about a command.
      

      Expected results:

      version of tkn, e.g. 0.38.0

      Reproducibility (Always/Intermittent/Only Once):

      always

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

       

       *

              rh-ee-anebhat Aneesh Bhat
              ppitonak Pavol Pitoňák
              Pavol Pitoňák Pavol Pitoňák
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: