Skip to content

Add externalloadbalanceripaddress field to KubernetesCluster struct - #163

Open
sureshanaparti wants to merge 1 commit into
mainfrom
feature/issue-275-external-load-balancer-csi
Open

Add externalloadbalanceripaddress field to KubernetesCluster struct#163
sureshanaparti wants to merge 1 commit into
mainfrom
feature/issue-275-external-load-balancer-csi

Conversation

@sureshanaparti

Copy link
Copy Markdown
Contributor

Exposes the external load balancer IP address parameter for Kubernetes clusters, enabling HA cluster deployments on Shared networks via the API client.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the CloudStack Go client’s Kubernetes cluster model to expose the external load balancer IP address returned by the API, which is needed for HA Kubernetes cluster workflows on Shared networks.

Changes:

  • Add externalloadbalanceripaddress to the KubernetesCluster response model used by listKubernetesClusters (and helper getters that rely on it).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +1851 to +1853
Etcdips map[string]string `json:"etcdips"`
Externalloadbalanceripaddress string `json:"externalloadbalanceripaddress"`
Etcdnodes int64 `json:"etcdnodes"`
… KubernetesCluster struct

Exposes two fields for Kubernetes cluster configuration:
- externalloadbalanceripaddress: external load balancer IP for HA clusters on Shared networks
- enablecsi: enable CloudStack CSI for cluster storage management (alias for csienabled)

The enablecsi field is added for consistency with the API parameter naming.
Copilot AI review requested due to automatic review settings August 17, 2026 17:11
@sureshanaparti
sureshanaparti force-pushed the feature/issue-275-external-load-balancer-csi branch from f453e4b to 11b9d0c Compare August 17, 2026 17:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Suppressed comments (1)

cloudstack/KubernetesService.go:1848

  • KubernetesCluster now has two exported fields (Csienabled and Enablecsi) with the same JSON tag csienabled. In Go's encoding/json, duplicate tags on the same struct level make field selection ambiguous and can result in the value being dropped during unmarshal, so clients may always see the zero value. Remove the duplicate field (or give it a distinct tag if the API really returns two different properties).
	Csienabled                    bool              `json:"csienabled"`
	Description                   string            `json:"description"`
	Enablecsi                     bool              `json:"csienabled"`
	Domain                        string            `json:"domain"`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants