Skip to content

Commit 7fe3d9e

Browse files
Template type and lifecycle in catalog info
1 parent 2ad636b commit 7fe3d9e

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

copier.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,28 @@ component_owner:
6464
Owner of the component in the Developer Portal Software Catalogue.
6565
This will normally be group:default/<your group>
6666
67+
component_type:
68+
type: str
69+
help: |
70+
Type of the component in the Developer Portal Software Catalogue.
71+
Most likely service, library or application (without quotes).
72+
73+
component_lifecycle:
74+
type: str
75+
help: |
76+
Project's current lifecycle stage, to be displayed in the Developer
77+
Portal Software Catalogue.
78+
choices:
79+
- alpha
80+
- beta
81+
- deprecated
82+
- development
83+
- experimental
84+
- production
85+
- test
86+
- unknown
87+
default: experimental
88+
6789
# Template Options
6890
docker:
6991
type: bool

template/catalog-info.yaml.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ metadata:
55
title: {{ repo_name }}
66
description: {{ description }}
77
spec:
8-
type: documentation
9-
lifecycle: experimental
8+
type: {{ component_type }}
9+
lifecycle: {{ component_lifecycle }}
1010
owner: {{ component_owner }}

0 commit comments

Comments
 (0)