Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Include template name on the CKS clusters response
  • Loading branch information
nvazquez committed Oct 24, 2025
commit 1088f390e4503011194d286329b573415e3b27f1
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,7 @@ public KubernetesClusterResponse createKubernetesClusterResponse(long kubernetes
VMTemplateVO template = ApiDBUtils.findTemplateById(kubernetesCluster.getTemplateId());
if (template != null) {
response.setTemplateId(template.getUuid());
response.setTemplateName(template.getName());
}
ServiceOfferingVO offering = serviceOfferingDao.findByIdIncludingRemoved(kubernetesCluster.getServiceOfferingId());
if (offering != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ public class KubernetesClusterResponse extends BaseResponseWithAnnotations imple
@Param(description = "the ID of the template of the Kubernetes cluster")
private String templateId;

@SerializedName(ApiConstants.TEMPLATE_NAME)
@Param(description = "the name of the template of the Kubernetes cluster")
private String templateName;

@SerializedName(ApiConstants.NETWORK_ID)
@Param(description = "the ID of the network of the Kubernetes cluster")
private String networkId;
Expand Down Expand Up @@ -267,6 +271,14 @@ public void setTemplateId(String templateId) {
this.templateId = templateId;
}

public String getTemplateName() {
return templateName;
}

public void setTemplateName(String templateName) {
this.templateName = templateName;
}

public String getNetworkId() {
return networkId;
}
Expand Down
Loading