Skip to content

Commit 0926fff

Browse files
authored
feat(instance): add max_file_systems to server-type list (#4818)
1 parent 3770717 commit 0926fff

File tree

2 files changed

+138
-91
lines changed

2 files changed

+138
-91
lines changed

internal/namespaces/instance/v1/custom_server_type.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ type customServerType struct {
4343
RAM scw.Size `json:"ram"`
4444
Arch instance.Arch `json:"arch"`
4545
Availability instance.ServerTypesAvailability `json:"availability"`
46+
MaxFileSystems uint32 `json:"max_file_systems"`
4647
}
4748

4849
// serverTypeListBuilder transforms the server map into a list to display a
@@ -122,6 +123,7 @@ func serverTypeListBuilder(c *core.Command) *core.Command {
122123
RAM: scw.Size(serverType.RAM),
123124
Arch: serverType.Arch,
124125
Availability: serverTypeAvailability,
126+
MaxFileSystems: serverType.Capabilities.MaxFileSystems,
125127
})
126128
}
127129

0 commit comments

Comments
 (0)