Skip to content

Commit 379d88d

Browse files
Merge pull request #160 from civo/feat/public-ip-node-pool
Add fields related to public_ip_node_pool
2 parents 2861556 + 352141c commit 379d88d

File tree

2 files changed

+27
-23
lines changed

2 files changed

+27
-23
lines changed

kubernetes.go

+18-15
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ type KubernetesInstance struct {
3434

3535
// KubernetesPool represents a single pool within a Kubernetes cluster
3636
type KubernetesPool struct {
37-
ID string `json:"id"`
38-
Count int `json:"count,omitempty"`
39-
Size string `json:"size,omitempty"`
40-
InstanceNames []string `json:"instance_names,omitempty"`
41-
Instances []KubernetesInstance `json:"instances,omitempty"`
42-
Labels map[string]string `json:"labels,omitempty"`
43-
Taints []corev1.Taint `json:"taints,omitempty"`
37+
ID string `json:"id"`
38+
Count int `json:"count,omitempty"`
39+
Size string `json:"size,omitempty"`
40+
InstanceNames []string `json:"instance_names,omitempty"`
41+
Instances []KubernetesInstance `json:"instances,omitempty"`
42+
Labels map[string]string `json:"labels,omitempty"`
43+
Taints []corev1.Taint `json:"taints,omitempty"`
44+
PublicIPNodePool bool `json:"public_ip_node_pool,omitempty"`
4445
}
4546

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

111112
// RequiredPools returns the required pools for a given Kubernetes cluster
112113
type RequiredPools struct {
113-
ID string `json:"id"`
114-
Size string `json:"size"`
115-
Count int `json:"count"`
116-
Labels map[string]string `json:"labels,omitempty"`
117-
Taints []corev1.Taint `json:"taints,omitempty"`
114+
ID string `json:"id"`
115+
Size string `json:"size"`
116+
Count int `json:"count"`
117+
Labels map[string]string `json:"labels,omitempty"`
118+
Taints []corev1.Taint `json:"taints,omitempty"`
119+
PublicIPNodePool bool `json:"public_ip_node_pool,omitempty"`
118120
}
119121

120122
// PaginatedKubernetesClusters is a Kubernetes k3s cluster
@@ -145,9 +147,10 @@ type KubernetesClusterConfig struct {
145147

146148
// KubernetesClusterPoolConfig is used to create a new cluster pool
147149
type KubernetesClusterPoolConfig struct {
148-
ID string `json:"id,omitempty"`
149-
Count int `json:"count,omitempty"`
150-
Size string `json:"size,omitempty"`
150+
ID string `json:"id,omitempty"`
151+
Count int `json:"count,omitempty"`
152+
Size string `json:"size,omitempty"`
153+
PublicIPNodePool bool `json:"public_ip_node_pool,omitempty"`
151154
}
152155

153156
// KubernetesPlanConfiguration is a value within a configuration for

region.go

+9-8
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@ type Region struct {
2222

2323
// Feature represent a all feature inside a region
2424
type Feature struct {
25-
Iaas bool `json:"iaas"`
26-
Kubernetes bool `json:"kubernetes"`
27-
ObjectStore bool `json:"object_store"`
28-
LoadBalancer bool `json:"loadbalancer"`
29-
DBaaS bool `json:"dbaas"`
30-
Volume bool `json:"volume"`
31-
PaaS bool `json:"paas"`
32-
KFaaS bool `json:"kfaas"`
25+
Iaas bool `json:"iaas"`
26+
Kubernetes bool `json:"kubernetes"`
27+
ObjectStore bool `json:"object_store"`
28+
LoadBalancer bool `json:"loadbalancer"`
29+
DBaaS bool `json:"dbaas"`
30+
Volume bool `json:"volume"`
31+
PaaS bool `json:"paas"`
32+
KFaaS bool `json:"kfaas"`
33+
PublicIPNodePools bool `json:"public_ip_node_pools"`
3334
}
3435

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

0 commit comments

Comments
 (0)