feat(scaffolder): tags as list

This commit is contained in:
Ivan Shmidt
2020-06-24 23:36:09 +02:00
parent 74b237d495
commit 1b15895bc2
3 changed files with 7 additions and 6 deletions
@@ -4,8 +4,9 @@ metadata:
name: react-ssr-template
title: React SSR Template
description: Next.js application skeleton for creating isomorphic web applications.
annotations:
tags: Recommended,React
tags:
- Recommended
- React
spec:
processor: cookiecutter
type: website
@@ -4,8 +4,9 @@ metadata:
name: springboot-template
title: Spring Boot Service
description: Standard Spring Boot (Java) microservice with recommended configuration.
annotations:
tags: Recommended,Java
tags:
- Recommended
- Java
spec:
processor: cookiecutter
type: service
@@ -103,8 +103,7 @@ const ScaffolderPage: React.FC<{}> = () => {
}`}
type={template.spec.type ?? ''}
description={template.metadata.description ?? '-'}
// TODO(shmidt-i): how to store tags
tags={template.metadata.annotations?.tags.split(',') ?? []}
tags={template.metadata?.tags ?? []}
/>
</Grid>
);