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

feat(k8s): add support to show up the zone in the pool infos of a clu… #3879

Merged
merged 2 commits into from
Jun 14, 2024
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
2 changes: 2 additions & 0 deletions internal/namespaces/k8s/v1/custom_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ func clusterGetBuilder(c *core.Command) *core.Command {
MaxSize uint32 `json:"max_size"`
Autoscaling bool `json:"autoscaling"`
Autohealing bool `json:"autohealing"`
Zone scw.Zone `json:"zone"`
}

customPools := []customPool{}
Expand All @@ -276,6 +277,7 @@ func clusterGetBuilder(c *core.Command) *core.Command {
MaxSize: pool.MaxSize,
Autoscaling: pool.Autoscaling,
Autohealing: pool.Autohealing,
Zone: pool.Zone,
})
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ UsernamePrefix -
GroupsPrefix -

Pools:
ID NAME STATUS VERSION NODE TYPE MIN SIZE SIZE MAX SIZE AUTOSCALING AUTOHEALING
1da2aa9e-463c-422a-b523-11274412dd5d default scaling 1.27.1 dev1_m 0 1 1 false false
ID NAME STATUS VERSION NODE TYPE MIN SIZE SIZE MAX SIZE AUTOSCALING AUTOHEALING ZONE
1da2aa9e-463c-422a-b523-11274412dd5d default scaling 1.27.1 dev1_m 0 1 1 false false fr-par-1
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
{
"id": "e96a93a2-c36f-42bb-b7e1-bebf52db7956",
Expand Down Expand Up @@ -107,7 +107,8 @@ ID NAME STATUS VERSION NODE TYPE MIN
"size": 1,
"max_size": 1,
"autoscaling": false,
"autohealing": false
"autohealing": false,
"zone": "fr-par-1"
}
]
}
Loading