Skip to content

Commit

Permalink
Merge pull request #160 from civo/feat/public-ip-node-pool
Browse files Browse the repository at this point in the history
Add fields related to public_ip_node_pool
  • Loading branch information
vishalanarase authored Jul 18, 2023
2 parents 2861556 + 352141c commit 379d88d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
33 changes: 18 additions & 15 deletions kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ type KubernetesInstance struct {

// KubernetesPool represents a single pool within a Kubernetes cluster
type KubernetesPool struct {
ID string `json:"id"`
Count int `json:"count,omitempty"`
Size string `json:"size,omitempty"`
InstanceNames []string `json:"instance_names,omitempty"`
Instances []KubernetesInstance `json:"instances,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Taints []corev1.Taint `json:"taints,omitempty"`
ID string `json:"id"`
Count int `json:"count,omitempty"`
Size string `json:"size,omitempty"`
InstanceNames []string `json:"instance_names,omitempty"`
Instances []KubernetesInstance `json:"instances,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Taints []corev1.Taint `json:"taints,omitempty"`
PublicIPNodePool bool `json:"public_ip_node_pool,omitempty"`
}

// KubernetesInstalledApplication is an application within our marketplace available for
Expand Down Expand Up @@ -110,11 +111,12 @@ type KubernetesCluster struct {

// RequiredPools returns the required pools for a given Kubernetes cluster
type RequiredPools struct {
ID string `json:"id"`
Size string `json:"size"`
Count int `json:"count"`
Labels map[string]string `json:"labels,omitempty"`
Taints []corev1.Taint `json:"taints,omitempty"`
ID string `json:"id"`
Size string `json:"size"`
Count int `json:"count"`
Labels map[string]string `json:"labels,omitempty"`
Taints []corev1.Taint `json:"taints,omitempty"`
PublicIPNodePool bool `json:"public_ip_node_pool,omitempty"`
}

// PaginatedKubernetesClusters is a Kubernetes k3s cluster
Expand Down Expand Up @@ -145,9 +147,10 @@ type KubernetesClusterConfig struct {

// KubernetesClusterPoolConfig is used to create a new cluster pool
type KubernetesClusterPoolConfig struct {
ID string `json:"id,omitempty"`
Count int `json:"count,omitempty"`
Size string `json:"size,omitempty"`
ID string `json:"id,omitempty"`
Count int `json:"count,omitempty"`
Size string `json:"size,omitempty"`
PublicIPNodePool bool `json:"public_ip_node_pool,omitempty"`
}

// KubernetesPlanConfiguration is a value within a configuration for
Expand Down
17 changes: 9 additions & 8 deletions region.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ type Region struct {

// Feature represent a all feature inside a region
type Feature struct {
Iaas bool `json:"iaas"`
Kubernetes bool `json:"kubernetes"`
ObjectStore bool `json:"object_store"`
LoadBalancer bool `json:"loadbalancer"`
DBaaS bool `json:"dbaas"`
Volume bool `json:"volume"`
PaaS bool `json:"paas"`
KFaaS bool `json:"kfaas"`
Iaas bool `json:"iaas"`
Kubernetes bool `json:"kubernetes"`
ObjectStore bool `json:"object_store"`
LoadBalancer bool `json:"loadbalancer"`
DBaaS bool `json:"dbaas"`
Volume bool `json:"volume"`
PaaS bool `json:"paas"`
KFaaS bool `json:"kfaas"`
PublicIPNodePools bool `json:"public_ip_node_pools"`
}

// ListRegions returns all load balancers owned by the calling API account
Expand Down

0 comments on commit 379d88d

Please sign in to comment.