Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fields related to public_ip_node_pool #160

Merged
merged 1 commit into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
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"`
haardikdharma10 marked this conversation as resolved.
Show resolved Hide resolved
}

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