Skip to content

Commit

Permalink
feat: core - change operation (#1340)
Browse files Browse the repository at this point in the history
* feat: core - change operation to aceppt node-pool and node_pool

* feat: update specs
  • Loading branch information
geffersonFerraz authored Jan 29, 2025
1 parent 607e8e1 commit 0907f3f
Show file tree
Hide file tree
Showing 14 changed files with 2,339 additions and 1,833 deletions.
4 changes: 3 additions & 1 deletion mgc/cli/docs/kubernetes/cluster/create/help.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Usage:

## Product catalog:
- Examples:
- ./mgc kubernetes cluster create --allowed-cidrs='["192.168.1.0/24","10.0.0.0/16"]' --description="This is an example cluster." --enabled-bastion=false --enabled-server-group=false --name="cluster-example" --node-pools='[{"auto_scale":{"max_replicas":5,"min_replicas":2},"flavor":"cloud-k8s.gp1.small","name":"nodepool-example","replicas":3,"tags":["tag-value1"],"taints":[{"effect":"NoSchedule","key":"example-key","value":"valor1"}]}]' --param.version="v1.30.2"
- ./mgc kubernetes cluster create --allowed-cidrs='["192.168.1.0/24","10.0.0.0/16"]' --description="This is an example cluster." --enabled-bastion=false --enabled-server-group=false --name="cluster-example" --node-pools='[{"auto_scale":{"max_replicas":5,"min_replicas":2},"flavor":"cloud-k8s.gp1.small","name":"nodepool-example","replicas":3,"tags":["tag-value1"],"taints":[{"effect":"NoSchedule","key":"example-key","value":"valor1"}]}]' --param.version="v1.30.2" --zone="br-region-zone"

## Other commands:
- Flags:
Expand Down Expand Up @@ -37,6 +37,8 @@ Usage:
- Please specify the Kubernetes version using the standard "vX.Y.Z" format.
- (default "v1.30.2")
- -v, --version version for create
- --zone string [Deprecated] This parameter is deprecated and its use won't create a cluster at requested zone.
- Identifier of the zone where the Kubernetes cluster will be located.

## Flags:
```bash
Expand Down
4 changes: 2 additions & 2 deletions mgc/cli/docs/kubernetes/nodepool/create/help.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ Usage:
- --auto-scale object Object specifying properties for updating workload resources in the Kubernetes cluster.
- (properties: max_replicas and min_replicas)
- Use --auto-scale=help for more details
- --auto-scale.max-replicas integer Object specifying properties for updating workload resources in the Kubernetes cluster: Maximum number of replicas for autoscaling. If not provided, or if the value is equal to or less than zero, the autoscaler value will be assumed based on the "replicas" field.
- --auto-scale.max-replicas integer Object specifying properties for updating workload resources in the Kubernetes cluster: Maximum number of replicas for autoscaling. If not provided, the autoscale value will be assumed based on the "replicas" field.
- (min: 0)
- This is the same as '--auto-scale=max_replicas:integer'.
- --auto-scale.min-replicas integer Object specifying properties for updating workload resources in the Kubernetes cluster: Minimum number of replicas for autoscaling. If not provided, or if the value is equal to or less than zero, the autoscaler value will be assumed based on the "replicas" field.
- --auto-scale.min-replicas integer Object specifying properties for updating workload resources in the Kubernetes cluster: Minimum number of replicas for autoscaling. If not provided, the autoscale value will be assumed based on the "replicas" field.
- (min: 0)
- This is the same as '--auto-scale=min_replicas:integer'.
- --cli.list-links enum[=table] List all available links for this command (one of "json", "table" or "yaml")
Expand Down
4 changes: 2 additions & 2 deletions mgc/cli/docs/kubernetes/nodepool/update/help.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ Usage:
- --auto-scale object Object specifying properties for updating workload resources in the Kubernetes cluster.
- (properties: max_replicas and min_replicas)
- Use --auto-scale=help for more details
- --auto-scale.max-replicas integer Object specifying properties for updating workload resources in the Kubernetes cluster: Maximum number of replicas for autoscaling. If not provided, or if the value is equal to or less than zero, the autoscaler value will be assumed based on the "replicas" field.
- --auto-scale.max-replicas integer Object specifying properties for updating workload resources in the Kubernetes cluster: Maximum number of replicas for autoscaling. If not provided, the autoscale value will be assumed based on the "replicas" field.
- (min: 0)
- This is the same as '--auto-scale=max_replicas:integer'.
- --auto-scale.min-replicas integer Object specifying properties for updating workload resources in the Kubernetes cluster: Minimum number of replicas for autoscaling. If not provided, or if the value is equal to or less than zero, the autoscaler value will be assumed based on the "replicas" field.
- --auto-scale.min-replicas integer Object specifying properties for updating workload resources in the Kubernetes cluster: Minimum number of replicas for autoscaling. If not provided, the autoscale value will be assumed based on the "replicas" field.
- (min: 0)
- This is the same as '--auto-scale=min_replicas:integer'.
- --cli.list-links enum[=table] List all available links for this command (one of "json", "table" or "yaml")
Expand Down
4 changes: 2 additions & 2 deletions mgc/sdk/openapi/openapis/dbaas.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ info:
name: Tribo IAAS Cloud
url: https://gitlab.luizalabs.com/cloud/dbaas/docs
email: [email protected]
version: 1.40.1
version: 1.42.0
tags:
- name: engines
description: Engines available for database instances.
Expand Down Expand Up @@ -1647,7 +1647,7 @@ components:
description: Database instance unique name.
type: string
maxLength: 100
example: mydbinstance
example: my-db-instance
SnapshotCreateRequest:
required:
- name
Expand Down
2 changes: 1 addition & 1 deletion mgc/sdk/openapi/openapis/index.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ modules:
path: dbaas.openapi.yaml
summary: DBaaS API Product.
url: https://dbaas.jaxyendy.com/openapi.json
version: 1.40.1
version: 1.42.0
- description: APIs related to the Kubernetes product.
name: kubernetes
path: kubernetes.openapi.yaml
Expand Down
Loading

0 comments on commit 0907f3f

Please sign in to comment.