Support General resource type better
cd1989 opened this issue · comments
Is this a BUG REPORT or FEATURE REQUEST?:
/kind feature
For new resource type to use, Cyclone Web should support configure general resource type.
And also Cyclone should be able to registry new resource types, to be used for example when create template.
What happened:
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Support register
new resource type, which will result in a Resource Template
in Cyclone. A resource template is also a resource, but will a label indicating it's a templates, just like the stage and stage template.
What a Resource Template
does:
- Specify type of resource
- Specify resolver of resource
- Specify what parameters needed and descriptions of the parameters
- Specify supported operations: PULL, PUSH, PULL/PUSH
Buildin resources can also be provided as Resource Template
Cyclone Web
- List
Resource Template
to get the list of supported resources types, so that no need to hardcode supported typesGit
,SVN
- From a resource template, known what parameters needed when create a resource instance, so that no need to hardcode what parameters needed
- Based on supported operations, filter when list in input part of stage, output part of stage. If a resource supports only PUSH operation, it can't be used as input resource.
/close