Skip to content

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

@OrkoHunter

Description

@OrkoHunter

🔖 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

{Object.keys(harnessPipelineObject).length > 0 ? (
<ListSubheader>Pipelines</ListSubheader>
) : null}
{Object.keys(harnessPipelineObject).map(envId => (
<MenuItem value={harnessPipelineObject[envId]}>{envId}</MenuItem>
))}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions