+
+## ⚙️ Params
+
+| Name | Type | Details | Default |
+| ------------------- | ----------- |---------------------------------------------------------| ------- |
+| `apiConfig` | `ApiConfig` | Object with API configuration (target host, tokens...) | |
+| `ownerId` | `string` | UUID prefixed with orga_ | |
+| `clusterId` | `string` | ID of the Kubernetes cluster prefixed with kubernetes_ | |
+
+```ts
+interface ApiConfig {
+ API_HOST: string;
+ API_OAUTH_TOKEN: string;
+ API_OAUTH_TOKEN_SECRET: string;
+ OAUTH_CONSUMER_KEY: string;
+ OAUTH_CONSUMER_SECRET: string;
+}
+```
+
+## 🌐 API endpoints
+
+| Method | URL | Cache? |
+|----------|------------------------------------------------------------------|---------|
+| `GET` | `/v4/kubernetes/organisations/${ownerId}/clusters/${clusterId}` | Default |
+
+
+## ⬇️️ Examples
+
+```html
+
+
+
+```
diff --git a/src/translations/translations.en.js b/src/translations/translations.en.js
index c85f88235..84074b040 100644
--- a/src/translations/translations.en.js
+++ b/src/translations/translations.en.js
@@ -193,7 +193,7 @@ export const translations = {
'cc-addon-credentials-beta.doc-link.keycloak': `Secured multi-instances - Documentation`,
'cc-addon-credentials-beta.doc-link.otoroshi-api': `Manage Otoroshi from its API - Documentation`,
'cc-addon-credentials-beta.doc-link.otoroshi-ng': `Otoroshi in a Network Group - Documentation`,
- 'cc-addon-credentials-beta.error': `Something went wrong while loading add-on information.`,
+ 'cc-addon-credentials-beta.error': `Something went wrong while loading information`,
'cc-addon-credentials-beta.heading': `Access`,
'cc-addon-credentials-beta.ng-multi-instances.disabling.error': `Something went wrong while trying to disable the secured multi-instances`,
'cc-addon-credentials-beta.ng-multi-instances.disabling.success': `The secured multi-instances have been successfully disabled`,
@@ -272,7 +272,8 @@ export const translations = {
'cc-addon-header.action.open-addon': /** @param {{ linkName: string }} _ */ ({ linkName }) => `Open ${linkName}`,
'cc-addon-header.action.restart': `Restart`,
'cc-addon-header.action.restart-rebuild': `Re-build and restart`,
- 'cc-addon-header.error': `Something went wrong while loading add-on info.`,
+ 'cc-addon-header.error': `Something went wrong while loading information`,
+ 'cc-addon-header.error.fetch-kubeconfig': `An error occurred while refreshing the Kubeconfig link, please refresh the page.`,
'cc-addon-header.logs.link': `View logs`,
'cc-addon-header.rebuild.error': `Something went wrong while rebuilding the add-on.`,
'cc-addon-header.rebuild.success.message': /** @param {{logsUrl: string, docsUrl: string}} _ */ ({
@@ -288,10 +289,11 @@ export const translations = {
}) =>
sanitize`The process of restarting your add-on and its resources is in progress. See the logs or the documentation for more information.`,
'cc-addon-header.restart.success.title': `Restart in progress`,
- 'cc-addon-header.state-msg.deployment-failed': `The deployment has failed`,
- 'cc-addon-header.state-msg.deployment-is-active': `Your add-on is active!`,
- 'cc-addon-header.state-msg.deployment-is-deploying': `Your add-on is deploying…`,
- 'cc-addon-header.state-msg.unknown-state': `Unknown state, try to restart the add-on or contact our support if you have additional questions.`,
+ 'cc-addon-header.state-msg.deployment-failed': `Deployment failed`,
+ 'cc-addon-header.state-msg.deployment-is-active': /** @param {{ providerId: string }} _ */ ({ providerId }) =>
+ `${providerId} ${providerId === 'kubernetes' ? 'cluster' : 'instance'} is active`,
+ 'cc-addon-header.state-msg.deployment-is-deploying': `Deployment in progress`,
+ 'cc-addon-header.state-msg.unknown-state': `Unknown state, try to restart or contact our support if you have additional questions.`,
//#endregion
//#region cc-addon-info
'cc-addon-info.billing.heading': `Billing`,
@@ -299,10 +301,11 @@ export const translations = {
'cc-addon-info.creation-date.human-friendly-date': /** @param {{ date: string | number }} _ */ ({ date }) =>
formatDatetime(date),
'cc-addon-info.doc-link.keycloak': `Keycloak - Documentation`,
+ 'cc-addon-info.doc-link.kubernetes': `Kubernetes - Documentation`,
'cc-addon-info.doc-link.matomo': `Matomo - Documentation`,
'cc-addon-info.doc-link.metabase': `Metabase - Documentation`,
'cc-addon-info.doc-link.otoroshi': `Otoroshi - Documentation`,
- 'cc-addon-info.error': `Something went wrong while loading add-on information.`,
+ 'cc-addon-info.error': `Something went wrong while loading information`,
'cc-addon-info.feature.connection-limit': `Connection limit`,
'cc-addon-info.feature.cpu': `vCPUs`,
'cc-addon-info.feature.data-exploration': `Data Exploration`,
diff --git a/src/translations/translations.fr.js b/src/translations/translations.fr.js
index 8b4afaa39..a61c72d55 100644
--- a/src/translations/translations.fr.js
+++ b/src/translations/translations.fr.js
@@ -204,7 +204,7 @@ export const translations = {
'cc-addon-credentials-beta.doc-link.keycloak': `Multi-instances sécurisé - Documentation`,
'cc-addon-credentials-beta.doc-link.otoroshi-api': `Gérer Otoroshi via son API - Documentation`,
'cc-addon-credentials-beta.doc-link.otoroshi-ng': `Otoroshi dans un Network Group - Documentation`,
- 'cc-addon-credentials-beta.error': `Une erreur est survenue pendant le chargement des informations de l'add-on.`,
+ 'cc-addon-credentials-beta.error': `Une erreur est survenue pendant le chargement des informations`,
'cc-addon-credentials-beta.heading': `Accès`,
'cc-addon-credentials-beta.ng-multi-instances.disabling.error': `Une erreur est survenue lors de la désactivation du multi-instances sécurisé`,
'cc-addon-credentials-beta.ng-multi-instances.disabling.success': `Le multi-instances sécurisé a été désactivé avec succès`,
@@ -283,26 +283,28 @@ export const translations = {
'cc-addon-header.action.open-addon': /** @param {{ linkName: string }} _ */ ({ linkName }) => `Ouvrir ${linkName}`,
'cc-addon-header.action.restart': `Redémarrer`,
'cc-addon-header.action.restart-rebuild': `Re-build et redémarrer`,
- 'cc-addon-header.error': `Une erreur est survenue pendant le chargement des informations de l'add-on.`,
+ 'cc-addon-header.error': `Une erreur est survenue pendant le chargement des informations`,
+ 'cc-addon-header.error.fetch-kubeconfig': `Une erreur est survenue lors du rafraîchissement du lien Kubeconfig, veuillez raffraîchir la page`,
'cc-addon-header.logs.link': `Voir les logs`,
- 'cc-addon-header.rebuild.error': `Une erreur est survenue pendant le re-build de l'add-on.`,
+ 'cc-addon-header.rebuild.error': `Une erreur est survenue pendant le re-build de l'add-on`,
'cc-addon-header.rebuild.success.message': /** @param {{logsUrl: string, docsUrl: string}} _ */ ({
logsUrl,
docsUrl,
}) =>
sanitize`Le processus de re-build et de redémarrage de votre add-on et de ses ressources est en cours. Consultez les logs ou la documentation pour plus d'informations.`,
'cc-addon-header.rebuild.success.title': `Re-build et redémarrage en cours`,
- 'cc-addon-header.restart.error': `Une erreur est survenue pendant le redémarrage de l'add-on.`,
+ 'cc-addon-header.restart.error': `Une erreur est survenue pendant le redémarrage de l'add-on`,
'cc-addon-header.restart.success.message': /** @param {{logsUrl: string, docsUrl: string}} _ */ ({
logsUrl,
docsUrl,
}) =>
sanitize`Le processus de redémarrage de votre add-on et de ses ressources est en cours. Consultez les logs ou la documentation pour plus d'informations.`,
'cc-addon-header.restart.success.title': `Redémarrage en cours`,
- 'cc-addon-header.state-msg.deployment-failed': `Le déploiement de l'add-on a échoué.`,
- 'cc-addon-header.state-msg.deployment-is-active': `Votre add-on est disponible !`,
- 'cc-addon-header.state-msg.deployment-is-deploying': `L'add-on est en cours de déploiement…`,
- 'cc-addon-header.state-msg.unknown-state': `État inconnu, essayez de redémarrer l'add-on ou de contacter notre support si vous avez des questions.`,
+ 'cc-addon-header.state-msg.deployment-failed': `Le déploiement a échoué`,
+ 'cc-addon-header.state-msg.deployment-is-active': /** @param {{ productId: string }} _ */ ({ productId }) =>
+ `Votre ${productId === 'kubernetes' ? 'cluster' : 'instance'} ${productId} est disponible !`,
+ 'cc-addon-header.state-msg.deployment-is-deploying': `En cours de déploiement…`,
+ 'cc-addon-header.state-msg.unknown-state': `État inconnu, essayez de redémarrer ou de contacter notre support si vous avez des questions`,
//#endregion
//#region cc-addon-info
'cc-addon-info.billing.heading': `Facturation`,
@@ -310,10 +312,11 @@ export const translations = {
'cc-addon-info.creation-date.human-friendly-date': /** @param {{ date: string | number }} _ */ ({ date }) =>
formatDatetime(date),
'cc-addon-info.doc-link.keycloak': `Keycloak - Documentation`,
+ 'cc-addon-info.doc-link.kubernetes': `Kubernetes - Documentation`,
'cc-addon-info.doc-link.matomo': `Matomo - Documentation`,
'cc-addon-info.doc-link.metabase': `Metabase - Documentation`,
'cc-addon-info.doc-link.otoroshi': `Otoroshi - Documentation`,
- 'cc-addon-info.error': `Une erreur est survenue pendant le chargement des informations de l'add-on.`,
+ 'cc-addon-info.error': `Une erreur est survenue pendant le chargement des informations`,
'cc-addon-info.feature.connection-limit': `Limite de connexions`,
'cc-addon-info.feature.cpu': `vCPUs`,
'cc-addon-info.feature.data-exploration': `Exploration des données`,