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

CON-5657 (Re-)expose public HA enablement flags in godo #565

Merged
merged 2 commits into from
Oct 12, 2022
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
3 changes: 3 additions & 0 deletions kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ type KubernetesClusterUpdateRequest struct {
MaintenancePolicy *KubernetesMaintenancePolicy `json:"maintenance_policy,omitempty"`
AutoUpgrade *bool `json:"auto_upgrade,omitempty"`
SurgeUpgrade bool `json:"surge_upgrade,omitempty"`

// Convert cluster to run highly available control plane
HA *bool `json:"ha,omitempty"`
}

// KubernetesClusterDeleteSelectiveRequest represents a delete selective request to delete a cluster and it's associated resources.
Expand Down
3 changes: 2 additions & 1 deletion kubernetes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,7 @@ func TestKubernetesClusters_Update(t *testing.T) {
Tags: []string{"cluster-tag-1", "cluster-tag-2"},
VPCUUID: "880b7f98-f062-404d-b33c-458d545696f6",
SurgeUpgrade: true,
HA: true,
NodePools: []*KubernetesNodePool{
{
ID: "8d91899c-0739-4a1a-acc5-deadbeefbb8a",
Expand Down Expand Up @@ -804,7 +805,7 @@ func TestKubernetesClusters_Update(t *testing.T) {
"cluster-tag-2"
],
"vpc_uuid": "880b7f98-f062-404d-b33c-458d545696f6",
"ha": false,
"ha": true,
"surge_upgrade": true,
"node_pools": [
{
Expand Down