Skip to content

Commit f53d137

Browse files
committed
Fix since version on API params
1 parent 0662117 commit f53d137

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

api/src/main/java/com/cloud/server/ManagementService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public interface ManagementService {
370370
* @param cmd The api command class.
371371
* @return A VO with the registered userdata.
372372
*/
373-
UserData registerCniConfigration(RegisterCniConfigurationCmd cmd);
373+
UserData registerCniConfiguration(RegisterCniConfigurationCmd cmd);
374374

375375
/**
376376
* Registers a userdata.

api/src/main/java/org/apache/cloudstack/api/command/user/template/RegisterTemplateCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public class RegisterTemplateCmd extends BaseCmd implements UserCmd {
170170

171171
@Parameter(name=ApiConstants.FOR_CKS,
172172
type = CommandType.BOOLEAN,
173-
description = "if true, the templates would be available for deploying CKS clusters", since = "4.20.0")
173+
description = "if true, the templates would be available for deploying CKS clusters", since = "4.21.0")
174174
protected Boolean forCks;
175175

176176
@Parameter(name = ApiConstants.TEMPLATE_TYPE, type = CommandType.STRING,

api/src/main/java/org/apache/cloudstack/api/command/user/userdata/DeleteCniConfigurationCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131

3232
@APICommand(name = "deleteCniConfiguration", description = "Deletes a CNI Configuration", responseObject = SuccessResponse.class, entityType = {UserData.class},
33-
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false, since = "4.19",
33+
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false, since = "4.21.0",
3434
authorized = {RoleType.Admin, RoleType.ResourceAdmin, RoleType.DomainAdmin, RoleType.User})
3535
public class DeleteCniConfigurationCmd extends DeleteUserDataCmd {
3636

api/src/main/java/org/apache/cloudstack/api/command/user/userdata/ListCniConfigurationCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import java.util.List;
3131

3232
@APICommand(name = "listCniConfiguration", description = "List userdata for CNI plugins", responseObject = UserDataResponse.class, entityType = {UserData.class},
33-
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false, since = "4.20",
33+
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false, since = "4.21.0",
3434
authorized = {RoleType.Admin, RoleType.ResourceAdmin, RoleType.DomainAdmin, RoleType.User})
3535
public class ListCniConfigurationCmd extends ListUserDataCmd {
3636
public static final Logger logger = LogManager.getLogger(ListCniConfigurationCmd.class.getName());

api/src/main/java/org/apache/cloudstack/api/command/user/userdata/RegisterCniConfigurationCmd.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
@APICommand(name = "registerCniConfiguration",
3131
description = "Register a CNI Configuration to be used with CKS cluster",
32-
since = "4.19.0",
32+
since = "4.21.0",
3333
responseObject = SuccessResponse.class,
3434
requestHasSensitiveInfo = false,
3535
responseHasSensitiveInfo = false,
@@ -58,7 +58,7 @@ public String getCniConfig() {
5858

5959
@Override
6060
public void execute() {
61-
UserData result = _mgr.registerCniConfigration(this);
61+
UserData result = _mgr.registerCniConfiguration(this);
6262
UserDataResponse response = _responseGenerator.createUserDataResponse(result);
6363
response.setResponseName(getCommandName());
6464
response.setObjectName(ApiConstants.CNI_CONFIG);

plugins/integrations/kubernetes-service/src/main/java/org/apache/cloudstack/api/command/user/kubernetes/cluster/CreateKubernetesClusterCmd.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,13 @@ public class CreateKubernetesClusterCmd extends BaseAsyncCreateCmd {
194194
@Parameter(name = ApiConstants.HYPERVISOR, type = CommandType.STRING, description = "the hypervisor on which the CKS cluster is to be deployed. This is required if the zone in which the CKS cluster is being deployed has clusters with different hypervisor types.")
195195
private String hypervisor;
196196

197-
@Parameter(name = ApiConstants.CNI_CONFIG_ID, type = CommandType.UUID, entityType = UserDataResponse.class, description = "the ID of the Userdata", since = "4.19.0")
197+
@Parameter(name = ApiConstants.CNI_CONFIG_ID, type = CommandType.UUID, entityType = UserDataResponse.class, description = "the ID of the Userdata", since = "4.21.0")
198198
private Long cniConfigId;
199199

200200
@Parameter(name = ApiConstants.CNI_CONFIG_DETAILS, type = CommandType.MAP,
201201
description = "used to specify the parameters values for the variables in userdata. " +
202202
"Example: cniconfigdetails[0].key=accesskey&cniconfigdetails[0].value=s389ddssaa&" +
203-
"cniconfigdetails[1].key=secretkey&cniconfigdetails[1].value=8dshfsss", since = "4.19.0")
203+
"cniconfigdetails[1].key=secretkey&cniconfigdetails[1].value=8dshfsss", since = "4.21.0")
204204
private Map cniConfigDetails;
205205

206206
@Parameter(name=ApiConstants.AS_NUMBER, type=CommandType.LONG, description="the AS Number of the network")

server/src/main/java/com/cloud/server/ManagementServerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4882,7 +4882,7 @@ public Pair<List<? extends UserData>, Integer> listUserDatas(final ListUserDataC
48824882

48834883
@Override
48844884
@ActionEvent(eventType = EventTypes.EVENT_REGISTER_CNI_CONFIG, eventDescription = "registering CNI configration", async = true)
4885-
public UserData registerCniConfigration(RegisterCniConfigurationCmd cmd) {
4885+
public UserData registerCniConfiguration(RegisterCniConfigurationCmd cmd) {
48864886
final Account owner = getOwner(cmd);
48874887
checkForUserDataByName(cmd, owner);
48884888
final String name = cmd.getName();

0 commit comments

Comments
 (0)