Skip to content

Commit

Permalink
feat(cc-addon-credentials): add support for materiadb-kv
Browse files Browse the repository at this point in the history
Closes #992
  • Loading branch information
hsablonniere committed Apr 3, 2024
1 parent 53e6370 commit 5fce8de
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/cc-addon-credentials/cc-addon-credentials.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export class CcAddonCredentials extends LitElement {
return i18n('cc-addon-credentials.description.kibana');
case 'pulsar':
return i18n('cc-addon-credentials.description.pulsar');
case 'materiadb-kv':
return i18n('cc-addon-credentials.description.materiadb-kv');
default:
return '';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,20 @@ export const dataLoadedWithPulsar = makeStory(conf, {
}],
});

export const dataLoadedWithMateriaDbKv = makeStory(conf, {
items: [{
type: 'materiadb-kv',
name: 'MateriaDB KV',
toggleState: 'off',
image: 'https://assets.clever-cloud.com/logos/materia-db-kv.png',
credentials: [
{ type: 'host', value: 'example.com', secret: false },
{ type: 'port', value: '6379', secret: false },
{ type: 'auth-token', value: 'fake-SbKm9sHFaP2uCuQSLZbsQXhwelHxahs4tLV9IOwCc1RBBAtLNF1aM444DJxCtySpEst5zFlaIMbNM3s3koEYTT9PVkGHSwvb36wbSf9QRq8owFMnyx0mEseU1cHkMpzfo2KIFrjfx8laTYYNXh3ji8T8BI5v5dHHbOwpF0tegIYOXpwY8vc0EYTL43jq7DhRPWTyipW4me8W0dfaOjXf6ODLOFK8', secret: true },
],
}],
});

export const simulations = makeStory(conf, {
items: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ interface Credential {
secret: boolean;
}

type AddonType = "apm" | "elasticsearch" | "kibana" | "pulsar";
type AddonType = "apm" | "elasticsearch" | "kibana" | "pulsar" | "materiadb-kv";
1 change: 1 addition & 0 deletions src/translations/translations.en.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export const translations = {
'cc-addon-credentials.description.apm': `Use those credentials to connect an APM Server instance to your Elasticsearch cluster.`,
'cc-addon-credentials.description.elasticsearch': `Use those credentials to connect to your Elasticsearch cluster.`,
'cc-addon-credentials.description.kibana': `Use those credentials to connect a Kibana instance to your Elasticsearch cluster.`,
'cc-addon-credentials.description.materiadb-kv': `Use this information to connect your MateriaDB KV add-on.`,
'cc-addon-credentials.description.pulsar': `Use this information to connect your Pulsar add-on.`,
'cc-addon-credentials.field.auth-token': `Token`,
'cc-addon-credentials.field.host': `Host`,
Expand Down
1 change: 1 addition & 0 deletions src/translations/translations.fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export const translations = {
'cc-addon-credentials.description.apm': `Utilisez ces identifiants pour connecter une instance d'APM Server à votre cluster Elasticsearch.`,
'cc-addon-credentials.description.elasticsearch': `Utilisez ces identifiants pour vous connecter à votre cluster Elasticsearch.`,
'cc-addon-credentials.description.kibana': `Utilisez ces identifiants pour connecter une instance de Kibana à votre cluster Elasticsearch.`,
'cc-addon-credentials.description.materiadb-kv': `Utilisez ces informations pour vous connecter à votre add-on MateriaDB KV.`,
'cc-addon-credentials.description.pulsar': `Utilisez ces informations pour vous connecter à votre add-on Pulsar.`,
'cc-addon-credentials.field.auth-token': `Token`,
'cc-addon-credentials.field.host': `Hôte`,
Expand Down

0 comments on commit 5fce8de

Please sign in to comment.