Skip to content

Commit cff4c5b

Browse files
ppprevostlolottetheclash
authored andcommitted
feat(pci-kubernetes): deploy multi node creation on cluster
ref: #TAPC-4718 Signed-off-by: Pierre-Philippe <[email protected]>
1 parent d5464cc commit cff4c5b

26 files changed

+653
-356
lines changed

packages/manager/apps/pci-kubernetes/public/translations/add/Messages_fr_FR.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,6 @@
8181
"kube_add_plan_content_unavailable_1AZ_banner": "Le plan {{ plan }} n'est pas encore disponible dans les régions 1-AZ. Si vous souhaitez profiter du plan {{ plan }}, veuillez sélectionner le déploiement en 3-AZ.",
8282
"kube_add_plan_content_unavailable_3AZ_banner": "Le plan {{ plan }} n'est pas encore disponible dans les régions 3-AZ. Si vous souhaitez profiter du plan {{ plan }}, veuillez sélectionner un déploiement en 1-AZ.",
8383
"kube_add_plan_content_coming_very_soon": "Bientôt disponible",
84-
"kube_add_plan_subtitle": "Choisissez le plan adapté à vos besoins. Bénéficiez d'un large choix d'instances utilisées comme nœuds Kubernetes, facturées à l'usage ou avec engagement."
84+
"kube_add_plan_subtitle": "Choisissez le plan adapté à vos besoins. Bénéficiez d'un large choix d'instances utilisées comme nœuds Kubernetes, facturées à l'usage ou avec engagement.",
85+
"kube_add_node_pool_name_already_exist_validation_error": "Le nom de nodepool est déjà utilisé. Veuillez en choisir un autre."
8586
}

packages/manager/apps/pci-kubernetes/public/translations/node-pool/Messages_de_DE.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@
3939
"kube_node_pool": "Node-Pool konfigurieren",
4040
"kube_common_estimation_price_free": "Kostenlos",
4141
"kube_common_estimation_total_price": "Geschätzter Gesamtpreis:",
42-
"kube_common_node_pool_estimation_cost_tile": "Monatliche Schätzung"
42+
"kube_common_node_pool_estimation_cost_tile": "Monatliche Schätzung",
43+
"kube_common_node_pool_select_zone": "Sie müssen mindestens eine Verfügbarkeitszone auswählen."
4344
}

packages/manager/apps/pci-kubernetes/public/translations/node-pool/Messages_en_GB.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@
3939
"kube_node_pool": "Configure node pool",
4040
"kube_common_estimation_price_free": "Free",
4141
"kube_common_estimation_total_price": "Total estimated price:",
42-
"kube_common_node_pool_estimation_cost_tile": "Monthly estimate"
42+
"kube_common_node_pool_estimation_cost_tile": "Monthly estimate",
43+
"kube_common_node_pool_select_zone": "You must select at least one availability zone."
4344
}

packages/manager/apps/pci-kubernetes/public/translations/node-pool/Messages_es_ES.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@
3939
"kube_node_pool": "Configurar el pool de nodos",
4040
"kube_common_estimation_price_free": "Gratis",
4141
"kube_common_estimation_total_price": "Precio total estimado:",
42-
"kube_common_node_pool_estimation_cost_tile": "Estimación mensual"
42+
"kube_common_node_pool_estimation_cost_tile": "Estimación mensual",
43+
"kube_common_node_pool_select_zone": "Debes seleccionar al menos una zona de disponibilidad."
4344
}

packages/manager/apps/pci-kubernetes/public/translations/node-pool/Messages_fr_CA.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@
3939
"kube_common_add_node_pool": "Ajouter le pool de nœuds",
4040
"kube_common_min_max_nodes": "Min {{minNodes}}, Max {{maxNodes}}",
4141
"kube_common_node_pool_deploy_title": "Choix de la zone de disponibilité",
42-
"kube_common_node_pool_deploy_description": "Dans un cluster Kubernetes réparti sur trois zone de disponibilité (AZ), l'utilisation de pools de nœuds par zone est recommandée pour assurer la résilience et la haute disponibilité. Cette configuration vous permet de distribuer de manière équilibrée vos workloads entre les AZ. Elle améliore ainsi la tolérance aux pannes et garantit une continuité de service optimale."
42+
"kube_common_node_pool_deploy_description": "Dans un cluster Kubernetes réparti sur trois zone de disponibilité (AZ), l'utilisation de pools de nœuds par zone est recommandée pour assurer la résilience et la haute disponibilité. Cette configuration vous permet de distribuer de manière équilibrée vos workloads entre les AZ. Elle améliore ainsi la tolérance aux pannes et garantit une continuité de service optimale.",
43+
"kube_common_node_pool_select_zone": "Vous devez sélectionner au moins une zone de disponibilité."
4344
}

packages/manager/apps/pci-kubernetes/public/translations/node-pool/Messages_fr_FR.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@
3939
"kube_common_add_node_pool": "Ajouter le pool de nœuds",
4040
"kube_common_min_max_nodes": "Min {{minNodes}}, Max {{maxNodes}}",
4141
"kube_common_node_pool_deploy_title": "Choix de la zone de disponibilité",
42-
"kube_common_node_pool_deploy_description": "Dans un cluster Kubernetes réparti sur trois zone de disponibilité (AZ), l'utilisation de pools de nœuds par zone est recommandée pour assurer la résilience et la haute disponibilité. Cette configuration vous permet de distribuer de manière équilibrée vos workloads entre les AZ. Elle améliore ainsi la tolérance aux pannes et garantit une continuité de service optimale."
42+
"kube_common_node_pool_deploy_description": "Dans un cluster Kubernetes réparti sur trois zone de disponibilité (AZ), l'utilisation de pools de nœuds par zone est recommandée pour assurer la résilience et la haute disponibilité. Cette configuration vous permet de distribuer de manière équilibrée vos workloads entre les AZ. Elle améliore ainsi la tolérance aux pannes et garantit une continuité de service optimale.",
43+
"kube_common_node_pool_select_zone": "Vous devez sélectionner au moins une zone de disponibilité."
4344
}

packages/manager/apps/pci-kubernetes/public/translations/node-pool/Messages_it_IT.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@
3939
"kube_node_pool": "Configurare il pool di nodi",
4040
"kube_common_estimation_price_free": "Gratis",
4141
"kube_common_estimation_total_price": "Prezzo totale stimato:",
42-
"kube_common_node_pool_estimation_cost_tile": "Stima mensile"
42+
"kube_common_node_pool_estimation_cost_tile": "Stima mensile",
43+
"kube_common_node_pool_select_zone": "Devi selezionare almeno una zona di disponibilità."
4344
}

packages/manager/apps/pci-kubernetes/public/translations/node-pool/Messages_pl_PL.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@
3939
"kube_node_pool": "Konfiguracja puli węzłów",
4040
"kube_common_estimation_price_free": "Gratis",
4141
"kube_common_estimation_total_price": "Szacowana cena całkowita:",
42-
"kube_common_node_pool_estimation_cost_tile": "Szacunkowy koszt miesięczny"
42+
"kube_common_node_pool_estimation_cost_tile": "Szacunkowy koszt miesięczny",
43+
"kube_common_node_pool_select_zone": "Musisz wybrać przynajmniej jedną strefę dostępności."
4344
}

packages/manager/apps/pci-kubernetes/public/translations/node-pool/Messages_pt_PT.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@
3939
"kube_node_pool": "Configurar o pool de nós",
4040
"kube_common_estimation_price_free": "Grátis",
4141
"kube_common_estimation_total_price": "Preço total estimado:",
42-
"kube_common_node_pool_estimation_cost_tile": "Estimativa mensal"
42+
"kube_common_node_pool_estimation_cost_tile": "Estimativa mensal",
43+
"kube_common_node_pool_select_zone": "Você deve selecionar pelo menos uma zona de disponibilidade."
4344
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import { HTMLAttributes, PropsWithChildren } from 'react';
2+
3+
import clsx from 'clsx';
4+
5+
import { Card, CardProp } from '@ovhcloud/ods-react';
6+
7+
import { PciCardContent } from './PciCardContent.component';
8+
import { PciCardFooter } from './PciCardFooter.component';
9+
import { PciCardHeader } from './PciCardHeader.component';
10+
11+
export type TPciCardProps = CardProp &
12+
HTMLAttributes<HTMLDivElement> &
13+
PropsWithChildren<{
14+
selectable?: boolean;
15+
selected?: boolean;
16+
disabled?: boolean;
17+
compact?: boolean;
18+
}>;
19+
20+
export const PciCard = ({
21+
color = 'neutral',
22+
selectable = false,
23+
selected = false,
24+
disabled = false,
25+
compact = false,
26+
className,
27+
children,
28+
onClick,
29+
...rest
30+
}: TPciCardProps) => {
31+
// TODO : fix badge background color with tailwind
32+
const baseClasses = clsx(
33+
'flex flex-col gap-6',
34+
compact ? 'px-6 py-4' : 'p-6',
35+
{
36+
'cursor-not-allowed bg-[--ods-color-neutral-100] [&_*]:text-neutral-500 [&_[class^=_badge]]:bg-[--ods-color-neutral-500]':
37+
disabled,
38+
'hover:cursor-pointer border-[--ods-color-primary-600] bg-[--ods-color-information-025]':
39+
selected,
40+
'hover:cursor-pointer hover:border-[--ods-color-primary-600]': selectable,
41+
},
42+
className,
43+
);
44+
45+
return (
46+
<Card color={color} className={baseClasses} {...(!disabled && { onClick })} {...rest}>
47+
{children}
48+
</Card>
49+
);
50+
};
51+
52+
PciCard.Header = PciCardHeader;
53+
PciCard.Content = PciCardContent;
54+
PciCard.Footer = PciCardFooter;

0 commit comments

Comments
 (0)