Skip to content

"Custom" capabilities implementation #2234

Closed
@sidoruka

Description

Background
At the moment, Cloud Pipeline allows to set a predefined set of capabilities in the GUI for a job or a tool. Which trigger complex reconfiguration for the job (e.g. DIND).
For some use-cases we need to run some simple scripts per user's request. Such scripts may vary between the environments.
It would be nice to let the admins specify those scripts in the platform settings and allow users to select them in the "capabilities" menu.

Approach

  • Add a new preference launch.capabilities with the following format:
{
  "capability1": {
    "description": "Some text goes here",
    "commands": [
      "cmd1",
      "cmd2"
    ]
  },
  "capability2": {
    "description": "Another text goes here",
    "commands": [
      "cmd1"
    ]
  }
}
  • GUI shall read this preference and append list of capabilities names into the overall list and display the description field in the tooltip, when hovering this custom capability
    image
  • If the capability is selected - it shall be set as an environment variable in the following format: CP_CAP_CUSTOM_{CAPABILITY_NAME}=true. E.g. CP_CAP_CUSTOM_capability1=true for the example above

Metadata

Assignees

Labels

goal/dorado ✨kind/enhancementNew feature or requeststate/has-caseIssues that have test-casesstate/has-docIssues that have documentationstate/has-e2eIssues that are have e2e tests automationstate/verifyIssues that are already addressed and require validationsys/guiIssues related to the web gui

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions