mirror of https://github.com/apache/cloudstack.git
Add affinity group ID fields and accessors to KubernetesCluster and KubernetesClusterVO
This commit is contained in:
parent
319c0f6f94
commit
8bf7a453c9
|
|
@ -170,6 +170,9 @@ public interface KubernetesCluster extends ControlledEntity, com.cloud.utils.fsm
|
|||
Long getWorkerNodeTemplateId();
|
||||
Long getEtcdNodeTemplateId();
|
||||
Long getEtcdNodeCount();
|
||||
Long getControlNodeAffinityGroupId();
|
||||
Long getWorkerNodeAffinityGroupId();
|
||||
Long getEtcdNodeAffinityGroupId();
|
||||
Long getCniConfigId();
|
||||
String getCniConfigDetails();
|
||||
boolean isCsiEnabled();
|
||||
|
|
|
|||
|
|
@ -139,6 +139,15 @@ public class KubernetesClusterVO implements KubernetesCluster {
|
|||
@Column(name = "etcd_node_template_id")
|
||||
private Long etcdNodeTemplateId;
|
||||
|
||||
@Column(name = "control_node_affinity_group_id")
|
||||
private Long controlNodeAffinityGroupId;
|
||||
|
||||
@Column(name = "worker_node_affinity_group_id")
|
||||
private Long workerNodeAffinityGroupId;
|
||||
|
||||
@Column(name = "etcd_node_affinity_group_id")
|
||||
private Long etcdNodeAffinityGroupId;
|
||||
|
||||
@Column(name = "cni_config_id", nullable = true)
|
||||
private Long cniConfigId = null;
|
||||
|
||||
|
|
@ -509,6 +518,30 @@ public class KubernetesClusterVO implements KubernetesCluster {
|
|||
this.controlNodeTemplateId = controlNodeTemplateId;
|
||||
}
|
||||
|
||||
public Long getControlNodeAffinityGroupId() {
|
||||
return controlNodeAffinityGroupId;
|
||||
}
|
||||
|
||||
public void setControlNodeAffinityGroupId(Long controlNodeAffinityGroupId) {
|
||||
this.controlNodeAffinityGroupId = controlNodeAffinityGroupId;
|
||||
}
|
||||
|
||||
public Long getWorkerNodeAffinityGroupId() {
|
||||
return workerNodeAffinityGroupId;
|
||||
}
|
||||
|
||||
public void setWorkerNodeAffinityGroupId(Long workerNodeAffinityGroupId) {
|
||||
this.workerNodeAffinityGroupId = workerNodeAffinityGroupId;
|
||||
}
|
||||
|
||||
public Long getEtcdNodeAffinityGroupId() {
|
||||
return etcdNodeAffinityGroupId;
|
||||
}
|
||||
|
||||
public void setEtcdNodeAffinityGroupId(Long etcdNodeAffinityGroupId) {
|
||||
this.etcdNodeAffinityGroupId = etcdNodeAffinityGroupId;
|
||||
}
|
||||
|
||||
public Long getCniConfigId() {
|
||||
return cniConfigId;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue