Skip to content

Commit

Permalink
updated the mock testing and also docs
Browse files Browse the repository at this point in the history
Signed-off-by: Dipankar Das <[email protected]>
  • Loading branch information
dipankardas011 committed Aug 1, 2024
1 parent a17756c commit 30a0410
Show file tree
Hide file tree
Showing 11 changed files with 175 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-mock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ jobs:
- name: aws create
run: |
# ${{env.KSCTL_BIN}} create aws -n demo -r fake-region --nodeSizeMP "fake" --version 1.27.1 -s store-local --verbose -1 --yes
${{env.KSCTL_BIN}} create aws -n demo -r fake-region --nodeSizeMP "fake" --version 1.30 -s store-local --verbose -1 --yes
#${{env.KSCTL_BIN}} info -p aws -n demo -r fake-region -s store-local --verbose -1
${{env.KSCTL_BIN}} info -p aws -n demo -r fake-region -s store-local --verbose -1
${{env.KSCTL_BIN}} create ha-aws -n ha-demo-k3s --nodeSizeDS "fake" --version 1.27.1 --nodeSizeLB "fake" --nodeSizeCP "fake" --nodeSizeWP "fake" -r fake-region --verbose -1 -s store-local --yes --bootstrap k3s
Expand Down Expand Up @@ -198,7 +198,7 @@ jobs:
- name: aws switch
run: |
# ${{env.KSCTL_BIN}} switch -p aws -n demo -s store-local -r fake-region
${{env.KSCTL_BIN}} switch -p aws -n demo -s store-local -r fake-region
${{env.KSCTL_BIN}} switch -p ha-aws -n ha-demo-k3s -s store-local -r fake-region
${{env.KSCTL_BIN}} switch -p ha-aws -n ha-demo-kubeadm -s store-local -r fake-region
Expand Down
1 change: 1 addition & 0 deletions gen/docs.md/ksctl_create-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ ksctl create --help
### SEE ALSO

* [ksctl](ksctl.md) - CLI tool for managing multiple K8s clusters
* [ksctl create-cluster aws](ksctl_create-cluster_aws.md) - Use to create a EKS cluster in Aws
* [ksctl create-cluster azure](ksctl_create-cluster_azure.md) - Use to create a AKS cluster in Azure
* [ksctl create-cluster civo](ksctl_create-cluster_civo.md) - Use to create a Civo managed k3s cluster
* [ksctl create-cluster ha-aws](ksctl_create-cluster_ha-aws.md) - Use to create a self-managed Highly Available cluster on AWS
Expand Down
41 changes: 41 additions & 0 deletions gen/docs.md/ksctl_create-cluster_aws.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
## ksctl create-cluster aws

Use to create a EKS cluster in Aws

### Synopsis

It is used to create cluster with the given name from user

```
ksctl create-cluster aws [flags]
```

### Examples

```
ksctl create-cluster aws -n demo -r ap-south-1 -s store-local --nodeSizeMP t2.micro --noMP 3
```

### Options

```
--apps string Pre-Installed Applications
--bootstrap string Kubernetes Bootstrap
--cni string CNI
--feature-flags string Experimental Features: Supported values with comma seperated: [autoscale]
-h, --help help for aws
-n, --name string Cluster Name (default "demo")
--noMP int Number of Managed Nodes (default -1)
--nodeSizeMP string Node size of managed cluster nodes
-r, --region string Region
-s, --storage string storage provider
--version string Kubernetes Version
```

### SEE ALSO

* [ksctl create-cluster](ksctl_create-cluster.md) - Use to create a cluster

###### Auto generated by spf13/cobra on 1-Aug-2024
1 change: 1 addition & 0 deletions gen/docs.md/ksctl_delete-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ ksctl delete --help
### SEE ALSO

* [ksctl](ksctl.md) - CLI tool for managing multiple K8s clusters
* [ksctl delete-cluster aws](ksctl_delete-cluster_aws.md) - Use to deletes a EKS cluster
* [ksctl delete-cluster azure](ksctl_delete-cluster_azure.md) - Use to deletes a AKS cluster
* [ksctl delete-cluster civo](ksctl_delete-cluster_civo.md) - Use to delete a Civo managed k3s cluster
* [ksctl delete-cluster ha-aws](ksctl_delete-cluster_ha-aws.md) - Use to delete a self-managed Highly Available cluster on AWS
Expand Down
34 changes: 34 additions & 0 deletions gen/docs.md/ksctl_delete-cluster_aws.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
## ksctl delete-cluster aws

Use to deletes a EKS cluster

### Synopsis

It is used to delete cluster of given provider

```
ksctl delete-cluster aws [flags]
```

### Examples

```
ksctl delete aws --name demo --region ap-south-1 --storage store-local
```

### Options

```
-h, --help help for aws
-n, --name string Cluster Name (default "demo")
-r, --region string Region
-s, --storage string storage provider
```

### SEE ALSO

* [ksctl delete-cluster](ksctl_delete-cluster.md) - Use to delete a cluster

###### Auto generated by spf13/cobra on 1-Aug-2024
1 change: 1 addition & 0 deletions gen/docs.md/ksctl_switch-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ksctl switch-context --provider azure --name <clustername> --region <region>
ksctl switch-context --provider ha-civo --name <clustername> --region <region>
ksctl switch-context --provider ha-azure --name <clustername> --region <region>
ksctl switch-context --provider ha-aws --name <clustername> --region <region>
ksctl switch-context --provider aws --name <clustername> --region <region>
For Storage specific
Expand Down
1 change: 1 addition & 0 deletions gen/docs.rst/ksctl_create-cluster.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ SEE ALSO
~~~~~~~~

* `ksctl <ksctl.rst>`_ - CLI tool for managing multiple K8s clusters
* `ksctl create-cluster aws <ksctl_create-cluster_aws.rst>`_ - Use to create a EKS cluster in Aws
* `ksctl create-cluster azure <ksctl_create-cluster_azure.rst>`_ - Use to create a AKS cluster in Azure
* `ksctl create-cluster civo <ksctl_create-cluster_civo.rst>`_ - Use to create a Civo managed k3s cluster
* `ksctl create-cluster ha-aws <ksctl_create-cluster_ha-aws.rst>`_ - Use to create a self-managed Highly Available cluster on AWS
Expand Down
49 changes: 49 additions & 0 deletions gen/docs.rst/ksctl_create-cluster_aws.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
.. _ksctl_create-cluster_aws:

ksctl create-cluster aws
------------------------

Use to create a EKS cluster in Aws

Synopsis
~~~~~~~~


It is used to create cluster with the given name from user

::

ksctl create-cluster aws [flags]

Examples
~~~~~~~~

::


ksctl create-cluster aws -n demo -r ap-south-1 -s store-local --nodeSizeMP t2.micro --noMP 3


Options
~~~~~~~

::

--apps string Pre-Installed Applications
--bootstrap string Kubernetes Bootstrap
--cni string CNI
--feature-flags string Experimental Features: Supported values with comma seperated: [autoscale]
-h, --help help for aws
-n, --name string Cluster Name (default "demo")
--noMP int Number of Managed Nodes (default -1)
--nodeSizeMP string Node size of managed cluster nodes
-r, --region string Region
-s, --storage string storage provider
--version string Kubernetes Version

SEE ALSO
~~~~~~~~

* `ksctl create-cluster <ksctl_create-cluster.rst>`_ - Use to create a cluster

*Auto generated by spf13/cobra on 1-Aug-2024*
1 change: 1 addition & 0 deletions gen/docs.rst/ksctl_delete-cluster.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ SEE ALSO
~~~~~~~~

* `ksctl <ksctl.rst>`_ - CLI tool for managing multiple K8s clusters
* `ksctl delete-cluster aws <ksctl_delete-cluster_aws.rst>`_ - Use to deletes a EKS cluster
* `ksctl delete-cluster azure <ksctl_delete-cluster_azure.rst>`_ - Use to deletes a AKS cluster
* `ksctl delete-cluster civo <ksctl_delete-cluster_civo.rst>`_ - Use to delete a Civo managed k3s cluster
* `ksctl delete-cluster ha-aws <ksctl_delete-cluster_ha-aws.rst>`_ - Use to delete a self-managed Highly Available cluster on AWS
Expand Down
42 changes: 42 additions & 0 deletions gen/docs.rst/ksctl_delete-cluster_aws.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
.. _ksctl_delete-cluster_aws:

ksctl delete-cluster aws
------------------------

Use to deletes a EKS cluster

Synopsis
~~~~~~~~


It is used to delete cluster of given provider

::

ksctl delete-cluster aws [flags]

Examples
~~~~~~~~

::


ksctl delete aws --name demo --region ap-south-1 --storage store-local


Options
~~~~~~~

::

-h, --help help for aws
-n, --name string Cluster Name (default "demo")
-r, --region string Region
-s, --storage string storage provider

SEE ALSO
~~~~~~~~

* `ksctl delete-cluster <ksctl_delete-cluster.rst>`_ - Use to delete a cluster

*Auto generated by spf13/cobra on 1-Aug-2024*
1 change: 1 addition & 0 deletions gen/docs.rst/ksctl_switch-cluster.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Examples
ksctl switch-context --provider ha-civo --name <clustername> --region <region>
ksctl switch-context --provider ha-azure --name <clustername> --region <region>
ksctl switch-context --provider ha-aws --name <clustername> --region <region>
ksctl switch-context --provider aws --name <clustername> --region <region>

For Storage specific

Expand Down

0 comments on commit 30a0410

Please sign in to comment.