From 0e57bba42681ae3d1f14313b7f63ecaf8f2518ae Mon Sep 17 00:00:00 2001 From: Evgeniya Vashkevich Date: Fri, 26 Jan 2024 16:15:35 -0800 Subject: [PATCH] Added a wizard to create cluster from cluster class (#26) Added a wizard to create a capi cluster. --------- Co-authored-by: Nancy Butler <42977925+mantis-toboggan-md@users.noreply.github.com> --- pkg/capi/components/CCVariables/Variable.vue | 4 +- pkg/capi/components/CCVariables/index.vue | 5 +- pkg/capi/components/CardGrid.vue | 97 ++++ .../ClusterClassCard/ClusterCardField.vue | 48 ++ .../components/ClusterClassCard/index.vue | 186 ++++++++ pkg/capi/edit/ClusterConfig.vue | 448 ++++++++++++++++++ pkg/capi/edit/ControlPlaneEndpointSection.vue | 64 +++ pkg/capi/edit/NetworkSection.vue | 104 ++++ pkg/capi/edit/WorkerItem.vue | 254 ++++++++++ pkg/capi/edit/cluster.x-k8s.io.cluster.vue | 184 +++---- pkg/capi/index.ts | 56 +-- pkg/capi/l10n/en-us.yaml | 71 +++ pkg/capi/package.json | 2 +- pkg/capi/tsconfig.json | 6 +- pkg/capi/types/capi.ts | 49 ++ pkg/capi/util/validators.ts | 25 + vuex.d.ts | 14 + 17 files changed, 1494 insertions(+), 123 deletions(-) create mode 100644 pkg/capi/components/CardGrid.vue create mode 100644 pkg/capi/components/ClusterClassCard/ClusterCardField.vue create mode 100644 pkg/capi/components/ClusterClassCard/index.vue create mode 100644 pkg/capi/edit/ClusterConfig.vue create mode 100644 pkg/capi/edit/ControlPlaneEndpointSection.vue create mode 100644 pkg/capi/edit/NetworkSection.vue create mode 100644 pkg/capi/edit/WorkerItem.vue create mode 100644 vuex.d.ts diff --git a/pkg/capi/components/CCVariables/Variable.vue b/pkg/capi/components/CCVariables/Variable.vue index da8a42b..06bfd52 100644 --- a/pkg/capi/components/CCVariables/Variable.vue +++ b/pkg/capi/components/CCVariables/Variable.vue @@ -1,5 +1,5 @@ + + + + diff --git a/pkg/capi/components/ClusterClassCard/ClusterCardField.vue b/pkg/capi/components/ClusterClassCard/ClusterCardField.vue new file mode 100644 index 0000000..6c3c0f5 --- /dev/null +++ b/pkg/capi/components/ClusterClassCard/ClusterCardField.vue @@ -0,0 +1,48 @@ + + + + + diff --git a/pkg/capi/components/ClusterClassCard/index.vue b/pkg/capi/components/ClusterClassCard/index.vue new file mode 100644 index 0000000..4ffa7eb --- /dev/null +++ b/pkg/capi/components/ClusterClassCard/index.vue @@ -0,0 +1,186 @@ + + + + + diff --git a/pkg/capi/edit/ClusterConfig.vue b/pkg/capi/edit/ClusterConfig.vue new file mode 100644 index 0000000..58393b8 --- /dev/null +++ b/pkg/capi/edit/ClusterConfig.vue @@ -0,0 +1,448 @@ + + + diff --git a/pkg/capi/edit/ControlPlaneEndpointSection.vue b/pkg/capi/edit/ControlPlaneEndpointSection.vue new file mode 100644 index 0000000..6b296f0 --- /dev/null +++ b/pkg/capi/edit/ControlPlaneEndpointSection.vue @@ -0,0 +1,64 @@ + + diff --git a/pkg/capi/edit/NetworkSection.vue b/pkg/capi/edit/NetworkSection.vue new file mode 100644 index 0000000..4c90bd1 --- /dev/null +++ b/pkg/capi/edit/NetworkSection.vue @@ -0,0 +1,104 @@ + + diff --git a/pkg/capi/edit/WorkerItem.vue b/pkg/capi/edit/WorkerItem.vue new file mode 100644 index 0000000..ab4e91b --- /dev/null +++ b/pkg/capi/edit/WorkerItem.vue @@ -0,0 +1,254 @@ + + diff --git a/pkg/capi/edit/cluster.x-k8s.io.cluster.vue b/pkg/capi/edit/cluster.x-k8s.io.cluster.vue index 07779cb..4b3b210 100644 --- a/pkg/capi/edit/cluster.x-k8s.io.cluster.vue +++ b/pkg/capi/edit/cluster.x-k8s.io.cluster.vue @@ -1,63 +1,79 @@