CKS: make clustertype optional to keep backwards compatibility (#8180)

This PR fixes the issue that 4.18 cmk/api to create CKS cluster does not work in 4.19
This commit is contained in:
Wei Zhou 2023-11-07 20:01:38 +01:00 committed by GitHub
parent e9b24b6c32
commit 861107fa5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ public class CreateKubernetesClusterCmd extends BaseAsyncCreateCmd {
description = "root disk size in GB for each node")
private Long nodeRootDiskSize;
@Parameter(name = ApiConstants.CLUSTER_TYPE, type = CommandType.STRING, required = true, description = "type of the cluster: CloudManaged, ExternalManaged", since="4.19.0")
@Parameter(name = ApiConstants.CLUSTER_TYPE, type = CommandType.STRING, description = "type of the cluster: CloudManaged, ExternalManaged. The default value is CloudManaged.", since="4.19.0")
private String clusterType;
/////////////////////////////////////////////////////