Skip to content

Commit

Permalink
Added omitempty to kubernetes config, that way we only send the fille…
Browse files Browse the repository at this point in the history
…d fields

Signed-off-by: Alejandro JNM <alejandrojnm@gmail.com>
  • Loading branch information
alejandrojnm committed Apr 6, 2021
1 parent dc3ea1d commit af03bb1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ type PaginatedKubernetesClusters struct {

// KubernetesClusterConfig is used to create a new cluster
type KubernetesClusterConfig struct {
Name string `json:"name"`
Name string `json:"name,omitempty"`
Region string `json:"region,omitempty"`
NumTargetNodes int `json:"num_target_nodes"`
TargetNodesSize string `json:"target_nodes_size"`
KubernetesVersion string `json:"kubernetes_version"`
NodeDestroy string `json:"node_destroy"`
NetworkID string `json:"network_id"`
Tags string `json:"tags"`
Applications string `json:"applications"`
NumTargetNodes int `json:"num_target_nodes,omitempty"`
TargetNodesSize string `json:"target_nodes_size,omitempty"`
KubernetesVersion string `json:"kubernetes_version,omitempty"`
NodeDestroy string `json:"node_destroy,omitempty"`
NetworkID string `json:"network_id,omitempty"`
Tags string `json:"tags,omitempty"`
Applications string `json:"applications,omitempty"`
}

// KubernetesPlanConfiguration is a value within a configuration for
Expand Down

0 comments on commit af03bb1

Please sign in to comment.