Skip to content

Commit

Permalink
feat(k8s): add support to show up the zone in the pool infos of a clu… (
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone authored Jun 14, 2024
1 parent ab815a8 commit a30fa26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
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"
}
]
}

0 comments on commit a30fa26

Please sign in to comment.