-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmod.ts
More file actions
165 lines (162 loc) · 3.8 KB
/
mod.ts
File metadata and controls
165 lines (162 loc) · 3.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
/**
* A module which provides an up-to-date list of known CNDI Templates
* and relevant metadata.
* @example
* ```ts
* import { KNOWN_TEMPLATES } from "@cndi/known-templates";
*
* for (const template of KNOWN_TEMPLATES) {
* console.log(template.name,':', template.url);
* }
* ```
*
* @module
*/
export const POLYSEAM_TEMPLATE_DIRECTORY_URL =
"https://raw.githubusercontent.com/polyseam/cndi/main/templates";
type CNDITemplateType =
| "Database"
| "Orchestration"
| "Messaging"
| "Hardware Acceleration"
| "Serverless"
| "CMS"
| "Cache"
| "Data Visualization"
| "Data Integration"
| "Core"
| "Artificial Intelligence"
| "Storage"
| "Web Server";
export type CNDIKnownTemplate = {
name: string;
title: string; // name of the template as it appears on the website
type: CNDITemplateType; // type of the template (eg: "Database", "Message Queue", "Web Server")
url: string; // URL to the template's YAML file
aliases?: string[]; // other names that can be used to refer to this template with `cndi create -t`
ga: boolean; // whether Template is Generally Available (ie: has /templates/:name page)
};
export const KNOWN_TEMPLATES: CNDIKnownTemplate[] = [
{
name: "basic",
title: "Basic",
url: `${POLYSEAM_TEMPLATE_DIRECTORY_URL}/basic.yaml`,
ga: false, // `basic` Template has no docs page
type: "Core",
},
{
name: "airflow",
title: "Airflow",
url: `${POLYSEAM_TEMPLATE_DIRECTORY_URL}/airflow.yaml`,
ga: true,
type: "Orchestration",
},
{
name: "postgres",
title: "Postgres",
type: "Database",
url: `${POLYSEAM_TEMPLATE_DIRECTORY_URL}/postgres.yaml`,
aliases: ["cnpg", "pg", "postgresql"],
ga: true,
},
{
name: "kafka",
title: "Kafka",
type: "Messaging",
url: `${POLYSEAM_TEMPLATE_DIRECTORY_URL}/kafka.yaml`,
aliases: ["strimzi"],
ga: true,
},
{
name: "wordpress",
title: "Wordpress",
type: "CMS",
url: `${POLYSEAM_TEMPLATE_DIRECTORY_URL}/wordpress.yaml`,
ga: true,
},
{
name: "gpu-operator",
title: "GPU Operator",
type: "Hardware Acceleration",
url: `${POLYSEAM_TEMPLATE_DIRECTORY_URL}/gpu-operator.yaml`,
ga: true,
},
{
name: "vllm",
title: "VLLM",
type: "Artificial Intelligence",
url: `${POLYSEAM_TEMPLATE_DIRECTORY_URL}/vllm.yaml`,
ga: false,
},
{
name: "fns",
title: "Functions",
type: "Serverless",
url: `${POLYSEAM_TEMPLATE_DIRECTORY_URL}/fns.yaml`,
aliases: ["functions"],
ga: true,
},
{
name: "neo4j",
title: "Neo4j",
type: "Database",
url: `${POLYSEAM_TEMPLATE_DIRECTORY_URL}/neo4j.yaml`,
ga: true,
},
{
name: "proxy",
url: `${POLYSEAM_TEMPLATE_DIRECTORY_URL}/proxy.yaml`,
title: "Proxy",
type: "Web Server",
ga: false,
},
{
name: "mssqlserver",
title: "MS SQL Server",
url: `${POLYSEAM_TEMPLATE_DIRECTORY_URL}/mssqlserver.yaml`,
ga: true,
type: "Database",
},
{
name: "mongodb",
title: "MongoDB",
type: "Database",
url: `${POLYSEAM_TEMPLATE_DIRECTORY_URL}/mongodb.yaml`,
ga: true,
},
{
name: "redis",
title: "Redis",
type: "Cache",
url: `${POLYSEAM_TEMPLATE_DIRECTORY_URL}/redis.yaml`,
ga: true,
},
{
name: "hop",
title: "Hop",
type: "Data Integration",
url: `${POLYSEAM_TEMPLATE_DIRECTORY_URL}/hop.yaml`,
ga: true,
},
{
name: "mysql",
title: "MySQL",
type: "Database",
url: `${POLYSEAM_TEMPLATE_DIRECTORY_URL}/mysql.yaml`,
ga: true,
},
{
name: "minio",
title: "Minio",
type: "Storage",
url: `${POLYSEAM_TEMPLATE_DIRECTORY_URL}/minio.yaml`,
ga: false,
},
{
name: "superset",
title: "Superset",
type: "Data Visualization",
url: `${POLYSEAM_TEMPLATE_DIRECTORY_URL}/superset.yaml`,
ga: false,
},
] as const;