Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/user_docs/cli/kbcli_cluster_create_etcd.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ kbcli cluster create etcd NAME [flags]
### Options

```
--client-service.node-port int Optional, if clientService type is NodePort, by default and for convenience, the Kubernetes control plane will allocate a port from a range (default: 30000-32767).
--client-service.port int The port on which the service will listen. (default 2379)
--client-service.role string Role of the service within the cluster. (default "leader")
--cpu float CPU cores. Value range [0.5, 64]. (default 0.5)
--disable-exporter Enable or disable monitor. (default true)
--dry-run string[="unchanged"] Must be "client", or "server". If with client strategy, only print the object that would be sent, and no data is actually sent. If with server strategy, submit the server-side request, but no data is persistent. (default "none")
Expand All @@ -29,8 +32,6 @@ kbcli cluster create etcd NAME [flags]
--memory float Memory, the unit is Gi. Value range [0.5, 1000]. (default 0.5)
--node-labels stringToString Node label selector (default [])
-o, --output format Prints the output in the specified format. Allowed values: JSON and YAML (default yaml)
--peer-service.enabled Enable peer service (no need to enable for single cluster).
--peer-service.type string Service type for etcd peers, default peer service for single cluster use headless ClusterIP. Valid option is LoadBalancer, will support NodePort in the future. Legal values [ClusterIP, LoadBalancer]. (default "LoadBalancer")
--pod-anti-affinity string Pod anti-affinity type, one of: (Preferred, Required) (default "Preferred")
--replicas int The number of replicas, the default replicas is 3. Value range [1, 5]. (default 3)
--storage float Data Storage size, the unit is Gi. Value range [1, 10000]. (default 10)
Expand Down
2 changes: 1 addition & 1 deletion docs/user_docs/cli/kbcli_cluster_create_mongodb.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ kbcli cluster create mongodb NAME [flags]
--termination-policy string The termination policy of cluster. Legal values [DoNotTerminate, Delete, WipeOut]. (default "Delete")
--tolerations strings Tolerations for cluster, such as "key=value:effect,key:effect", for example '"engineType=mongo:NoSchedule", "diskType:NoSchedule"'
--topology-keys stringArray Topology keys for affinity
--version string Cluster version. Legal values [8.0.4, 7.0.16, 7.0.12, 6.0.20, 6.0.16, 5.0.30, 5.0.28, 4.4.29, 4.2.24, 4.0.28]. (default "6.0.16")
--version string Cluster version. Legal values [8.0.8, 8.0.6, 8.0.4, 7.0.19, 7.0.16, 7.0.12, 6.0.22, 6.0.20, 6.0.16, 5.0.30, 5.0.28, 4.4.29, 4.2.24, 4.0.28]. (default "6.0.16")
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/user_docs/cli/kbcli_cluster_create_mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ kbcli cluster create mysql NAME [flags]
--tenancy string Tenancy options, one of: (SharedNode, DedicatedNode) (default "SharedNode")
--termination-policy string The termination policy of cluster. Legal values [DoNotTerminate, Delete, WipeOut]. (default "Delete")
--tolerations strings Tolerations for cluster, such as "key=value:effect,key:effect", for example '"engineType=mongo:NoSchedule", "diskType:NoSchedule"'
--topology string Topology type of the serve. Note that under the orc/orc-proxysql topology, it is necessary to specify the Orchestrator cluster information. You should choose either orchestrator.cluster-service-selector or orchestrator.service-reference. This means that depending on your setup, you will configure one of these options to properly integrate with the Orchestrator service for managing your MySQL cluster. Legal values [semisync, semisync-proxysql, mgr, orc, orc-proxysql]. (default "server")
--topology string Topology type of the serve. Note that under the orc/orc-proxysql topology, it is necessary to specify the Orchestrator cluster information. You should choose either orchestrator.cluster-service-selector or orchestrator.service-reference. This means that depending on your setup, you will configure one of these options to properly integrate with the Orchestrator service for managing your MySQL cluster. Legal values [semisync, semisync-proxysql, mgr, mgr-proxysql, orc, orc-proxysql]. (default "semisync")
--topology-keys stringArray Topology keys for affinity
--version string MySQL version Legal values [8.0.39, 8.0.38, 8.0.37, 8.0.36, 8.4.2, 8.4.1, 8.4.0, 5.7.44]. (default "8.0.39")
```
Expand Down
2 changes: 1 addition & 1 deletion docs/user_docs/cli/kbcli_cluster_create_rabbitmq.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ kbcli cluster create rabbitmq NAME [flags]
--termination-policy string The termination policy of cluster. Legal values [DoNotTerminate, Delete, WipeOut]. (default "Delete")
--tolerations strings Tolerations for cluster, such as "key=value:effect,key:effect", for example '"engineType=mongo:NoSchedule", "diskType:NoSchedule"'
--topology-keys stringArray Topology keys for affinity
--version string Cluster version. Legal values [3.13.7, 3.13.2, 3.12.14, 3.11.28, 3.10.25, 3.9.29, 3.8.14]. (default "3.13.7")
--version string Cluster version. Legal values [4.0.9, 3.13.7, 3.13.2, 3.12.14, 3.11.28, 3.10.25, 3.9.29, 3.8.14]. (default "3.13.7")
```

### Options inherited from parent commands
Expand Down
Binary file modified pkg/cluster/charts/etcd.tgz
Binary file not shown.
Binary file modified pkg/cluster/charts/kafka.tgz
Binary file not shown.
Binary file modified pkg/cluster/charts/mongodb.tgz
Binary file not shown.
Binary file modified pkg/cluster/charts/mysql.tgz
Binary file not shown.
Binary file modified pkg/cluster/charts/postgresql.tgz
Binary file not shown.
Binary file modified pkg/cluster/charts/qdrant.tgz
Binary file not shown.
Binary file modified pkg/cluster/charts/rabbitmq.tgz
Binary file not shown.
Binary file modified pkg/cluster/charts/redis.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion pkg/cmd/cluster/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func clusterPreDeleteHook(o *action.DeleteOptions, object runtime.Object) error
}

if o.Force {
fmt.Fprintf(o.Out, printer.BoldRed("WARNING: Using --force may lead to potential data loss or residual dirty data if the cluster depends on other clusters.\n"))
fmt.Fprint(o.Out, printer.BoldRed("WARNING: Using --force may lead to potential data loss or residual dirty data if the cluster depends on other clusters.\n"))
components := util.GetComponentsOrShards(cluster)
for _, componentName := range components {
dynamicClient, err := o.Factory.DynamicClient()
Expand Down
5 changes: 5 additions & 0 deletions pkg/util/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const (
)

const (
typeNull = "null"
typeString = "string"
typeNumber = "number"
typeInteger = "integer"
Expand Down Expand Up @@ -135,6 +136,8 @@ func buildOneFlag(cmd *cobra.Command, k string, s *spec.Schema, isArray bool) er
}
case typeArray:
return fmt.Errorf("unsupported build flags for object with array nested within an array")
case typeNull:
return nil
default:
return fmt.Errorf("unsupported json schema type %s", s.Type)
}
Expand All @@ -160,6 +163,8 @@ func buildOneFlag(cmd *cobra.Command, k string, s *spec.Schema, isArray bool) er
if err := buildOneFlag(cmd, name, s.Items.Schema, true); err != nil {
return err
}
case typeNull:
return nil
default:
return fmt.Errorf("unsupported json schema type %s", s.Type)
}
Expand Down
Loading