pipeline icon indicating copy to clipboard operation
pipeline copied to clipboard

fix: the label is set to the wrong pipeline name

Open 0xff-dev opened this issue 1 year ago • 19 comments

Changes

when PipelineRun uses ClusterResolver to parse the Pipeline, the name of the Pipeline set in the label is wrong.

/kind bug

apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
  annotations:
    tekton.dev/displayName: component-rbac-gen
    tekton.dev/platforms: linux/amd64
    tekton.dev/tags: component-rbac-gen
  creationTimestamp: "2023-08-14T02:52:12Z"
  generation: 1
  labels:
    description: A_PipelineRun
    tekton.dev/pipeline: component-rbac-gen-run
  name: component-rbac-gen-run
  namespace: kube-system
  resourceVersion: "2534051"
  uid: fe33bcc4-f28d-4171-93f9-87cc73ff8510
spec:
  pipelineRef:
    params:
    - name: kind
      value: pipeline
    - name: name
      value: component-rbac-gen
    - name: namespace
      value: default
    resolver: cluster

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • [ ] Has Docs if any changes are user facing, including updates to minimum requirements e.g. Kubernetes version bumps
  • [ ] Has Tests included if any functionality added or changed
  • [x] Follows the commit message standard
  • [ ] Meets the Tekton contributor standards (including functionality, content, code)
  • [ ] Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
  • [ ] Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings). See some examples of good release notes.
  • [ ] Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

NONE

0xff-dev avatar Aug 14 '23 05:08 0xff-dev