Skip to content

Commit

Permalink
Add HA control planes support for VKE (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
optik-aper authored Oct 30, 2023
1 parent b3d6b16 commit bf40909
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,18 @@ type KubernetesHandler struct {

// Cluster represents a full VKE cluster
type Cluster struct {
ID string `json:"id"`
Label string `json:"label"`
DateCreated string `json:"date_created"`
ClusterSubnet string `json:"cluster_subnet"`
ServiceSubnet string `json:"service_subnet"`
IP string `json:"ip"`
Endpoint string `json:"endpoint"`
Version string `json:"version"`
Region string `json:"region"`
Status string `json:"status"`
NodePools []NodePool `json:"node_pools"`
ID string `json:"id"`
Label string `json:"label"`
DateCreated string `json:"date_created"`
ClusterSubnet string `json:"cluster_subnet"`
ServiceSubnet string `json:"service_subnet"`
IP string `json:"ip"`
Endpoint string `json:"endpoint"`
Version string `json:"version"`
Region string `json:"region"`
Status string `json:"status"`
HAControlPlanes bool `json:"ha_controlplanes"`
NodePools []NodePool `json:"node_pools"`
}

// NodePool represents a pool of nodes that are grouped by their label and plan type
Expand Down Expand Up @@ -87,10 +88,11 @@ type KubeConfig struct {

// ClusterReq struct used to create a cluster
type ClusterReq struct {
Label string `json:"label"`
Region string `json:"region"`
Version string `json:"version"`
NodePools []NodePoolReq `json:"node_pools"`
Label string `json:"label"`
Region string `json:"region"`
Version string `json:"version"`
HAControlPlanes bool `json:"ha_controlplanes,omitempty"`
NodePools []NodePoolReq `json:"node_pools"`
}

// ClusterReqUpdate struct used to update update a cluster
Expand Down

0 comments on commit bf40909

Please sign in to comment.