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

`tkn pac create repo` might use `.` as name

XMLWordPrintable

      Description of problem:

      `tkn pac create repo` is triggered in an empty repo its taking name as .
      Workaround

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

      The cwd is empty

      Steps to Reproduce

      1. git clone git@gitlab.com:xxx/blank.git
      2. cd blank
      3. git switch --create main
      4. tkn-pac create repo

       

      Actual results:

      `metadata.name` in `.tekton/pipelinerun.yaml` is `.`

      Expected results:

      `metadata.name` in `.tekton/pipelinerun.yaml` is valid kubernetes name

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

      upstream tkn-pac

      $ tkn-pac version
      0.28.0
      

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

        1. paste-c7e53d7410af5ee7.txt
          4 kB
          Dominik Holler
        2. pipelinerun.yaml
          3 kB
          Dominik Holler
        3. pipelines-as-code-controller.txt
          6 kB
          Dominik Holler

              cboudjna@redhat.com Chmouel Boudjnah
              dholler@redhat.com Dominik Holler
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: