Skip to content

Commit 79a720d

Browse files
committed
add static description. Move deprecated to bottom
1 parent 9000acb commit 79a720d

File tree

7 files changed

+34
-25
lines changed

7 files changed

+34
-25
lines changed

server/src/addons/addons.service.ts

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -39,48 +39,24 @@ export class AddonsService {
3939
// Load all Custom Resource Definitions to get the list of installed operators
4040
this.CRDList = await this.kubectl.getCustomresources();
4141

42-
const kuberoMysql = new KuberoMysql(this.CRDList);
43-
this.addonsList.push(kuberoMysql);
44-
4542
const kuberoAddonMysql = new KuberoAddonMysql(this.CRDList);
4643
this.addonsList.push(kuberoAddonMysql);
4744

48-
const kuberoRedis = new KuberoRedis(this.CRDList);
49-
this.addonsList.push(kuberoRedis);
50-
5145
const kuberoAddonRedis = new KuberoAddonRedis(this.CRDList);
5246
this.addonsList.push(kuberoAddonRedis);
5347

54-
const kuberoPostgresql = new KuberoPostgresql(this.CRDList);
55-
this.addonsList.push(kuberoPostgresql);
56-
5748
const kuberoAddonPostgres = new KuberoAddonPostgres(this.CRDList);
5849
this.addonsList.push(kuberoAddonPostgres);
5950

60-
const kuberoMongoDB = new KuberoMongoDB(this.CRDList);
61-
this.addonsList.push(kuberoMongoDB);
62-
6351
const kuberoAddonMongodb = new KuberoAddonMongodb(this.CRDList);
6452
this.addonsList.push(kuberoAddonMongodb);
6553

66-
const kuberoMemcached = new KuberoMemcached(this.CRDList);
67-
this.addonsList.push(kuberoMemcached);
68-
69-
const kuberoElasticsearch = new KuberoElasticsearch(this.CRDList);
70-
this.addonsList.push(kuberoElasticsearch);
71-
7254
const kuberoCouchDB = new KuberoCouchDB(this.CRDList);
7355
this.addonsList.push(kuberoCouchDB);
7456

75-
const kuberoKafka = new KuberoKafka(this.CRDList);
76-
this.addonsList.push(kuberoKafka);
77-
7857
const kuberoMail = new KuberoMail(this.CRDList);
7958
this.addonsList.push(kuberoMail);
8059

81-
const kuberoRabbitMQ = new KuberoRabbitMQ(this.CRDList);
82-
this.addonsList.push(kuberoRabbitMQ);
83-
8460
const kuberoAddonRabbitMQ = new KuberoAddonRabbitmq(this.CRDList);
8561
this.addonsList.push(kuberoAddonRabbitMQ);
8662

@@ -107,6 +83,31 @@ export class AddonsService {
10783

10884
const clickhouse = new ClickHouseInstallation(this.CRDList);
10985
this.addonsList.push(clickhouse);
86+
87+
const kuberoMysql = new KuberoMysql(this.CRDList);
88+
this.addonsList.push(kuberoMysql);
89+
90+
const kuberoRedis = new KuberoRedis(this.CRDList);
91+
this.addonsList.push(kuberoRedis);
92+
93+
const kuberoKafka = new KuberoKafka(this.CRDList);
94+
this.addonsList.push(kuberoKafka);
95+
96+
const kuberoMemcached = new KuberoMemcached(this.CRDList);
97+
this.addonsList.push(kuberoMemcached);
98+
99+
const kuberoElasticsearch = new KuberoElasticsearch(this.CRDList);
100+
this.addonsList.push(kuberoElasticsearch);
101+
102+
const kuberoMongoDB = new KuberoMongoDB(this.CRDList);
103+
this.addonsList.push(kuberoMongoDB);
104+
105+
const kuberoPostgresql = new KuberoPostgresql(this.CRDList);
106+
this.addonsList.push(kuberoPostgresql);
107+
108+
const kuberoRabbitMQ = new KuberoRabbitMQ(this.CRDList);
109+
this.addonsList.push(kuberoRabbitMQ);
110+
110111
}
111112

112113
public async getAddonsList(): Promise<IPlugin[]> {

server/src/addons/plugins/kuberoaddonsMongodb.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { IPlugin, IPluginFormFields } from './plugin.interface';
66
export class KuberoAddonMongodb extends Plugin implements IPlugin {
77
public id: string = 'kubero-operator'; //same as operator name
88
public displayName = 'MongoDB';
9+
public description: string =
10+
'MongoDB(R) is a relational open source NoSQL database. Easy to use, it stores data in JSON-like documents. Automated scalability and high-performance. Ideal for developing cloud native applications.';
911
public icon = '/img/addons/mongo.svg';
1012
public install: string = '';
1113
public url =

server/src/addons/plugins/kuberoaddonsMysql.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { IPlugin, IPluginFormFields } from './plugin.interface';
66
export class KuberoAddonMysql extends Plugin implements IPlugin {
77
public id: string = 'kubero-operator'; //same as operator name
88
public displayName = 'MySQL';
9+
public description = 'MySQL is a fast, reliable, scalable, and easy to use open source relational database system. Designed to handle mission-critical, heavy-load production applications.'
910
public icon = '/img/addons/mysql.svg';
1011
public install: string = '';
1112
public url =

server/src/addons/plugins/kuberoaddonsPostgres.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { IPlugin, IPluginFormFields } from './plugin.interface';
66
export class KuberoAddonPostgres extends Plugin implements IPlugin {
77
public id: string = 'kubero-operator'; //same as operator name
88
public displayName = 'PostgreSQL';
9+
public description = 'PostgreSQL (Postgres) is an open source object-relational database known for reliability and data integrity. ACID-compliant, it supports foreign keys, joins, views, triggers and stored procedures.';
910
public icon = '/img/addons/pgsql.svg';
1011
public install: string = '';
1112
public url =

server/src/addons/plugins/kuberoaddonsRabbitmq.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { IPlugin, IPluginFormFields } from './plugin.interface';
66
export class KuberoAddonRabbitmq extends Plugin implements IPlugin {
77
public id: string = 'kubero-operator'; //same as operator name
88
public displayName = 'RabbitMQ';
9+
public description = 'RabbitMQ is an open source general-purpose message broker that is designed for consistent, highly-available messaging scenarios (both synchronous and asynchronous).';
910
public icon = '/img/addons/rabbitmq.svg';
1011
public install: string = '';
1112
public url =

server/src/addons/plugins/kuberoaddonsRedis.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { IPlugin, IPluginFormFields } from './plugin.interface';
77
export class KuberoAddonRedis extends Plugin implements IPlugin {
88
public id: string = 'kubero-operator'; //same as operator name
99
public displayName = 'Redis';
10+
public description = 'Redis(R) is an open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.';
1011
public icon = '/img/addons/redis.svg';
1112
public install: string = '';
1213
public url =

server/src/addons/plugins/plugin.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ export abstract class Plugin {
6868
// set artifact hub values
6969
if (response?.data && response.data.description) {
7070
//this.displayName = response?.data.displayName; // use the name from the plugin
71-
this.description = response.data.description;
71+
if (this.description == '') {
72+
this.description = response.data.description;
73+
}
7274
this.maintainers = response.data.maintainers;
7375
this.links = response.data.links;
7476
this.readme = response.data.readme;

0 commit comments

Comments
 (0)