backstage-plugins icon indicating copy to clipboard operation
backstage-plugins copied to clipboard

[Feat]: Allow support for harness.io/pipelines annotations without the keys

Open OrkoHunter opened this issue 1 year ago • 2 comments

🔖 Feature description

Currently the harness.io/pipelines annotations expects an array of key value pairs like this

metadata:
  annotations:
    harness.io/pipelines: |
      ci: ci_pipeline_link
      cd: cd_pipeline_link
      key1: url1

However it should also be possible to skip these keys here. If the keys are missing, then the pipeline name can be used as the keys in the dropdown list.

metadata:
  annotations:
    harness.io/pipelines: |
      ci_pipeline_link
      cd_pipeline_link
      url1

or simply

metadata:
  annotations:
    harness.io/pipelines: pipeline_link

🎤 Context

✌️ Possible Implementation

https://github.com/harness/backstage-plugins/blob/32d285fedc7d4f8203d0cf69eb3eafffd71d6033/plugins/harness-ci-cd/src/components/ExecutionList/ExecutionList.tsx#L291-L296

OrkoHunter avatar Jul 15 '24 17:07 OrkoHunter

Context from Internal Slack: https://harness.slack.com/archives/C066C0AH4DU/p1721065085930089?thread_ts=1721059219.517469&cid=C066C0AH4DU

OrkoHunter avatar Jul 15 '24 17:07 OrkoHunter

cc @Debanitrkl @jenil-harness @sandeepa-kv-jois

OrkoHunter avatar Jul 15 '24 17:07 OrkoHunter