Skip to content

Commit cb65c6d

Browse files
authored
fix(k8s): change node metadata path to avoid collision with nodes path (scaleway#2300)
1 parent e84e5b2 commit cb65c6d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

api/k8s/v1/k8s_sdk.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,9 @@ const (
627627
// Local Block Storage: your system is stored locally on your node hypervisor. Lower latency, no persistence across node replacements.
628628
PoolVolumeTypeLSSD = PoolVolumeType("l_ssd")
629629
// Remote Block Storage: your system is stored on a centralized and resilient cluster. Higher latency, persistence across node replacements.
630-
PoolVolumeTypeBSSD = PoolVolumeType("b_ssd")
630+
PoolVolumeTypeBSSD = PoolVolumeType("b_ssd")
631+
PoolVolumeTypeSbs5k = PoolVolumeType("sbs_5k")
632+
PoolVolumeTypeSbs15k = PoolVolumeType("sbs_15k")
631633
)
632634

633635
func (enum PoolVolumeType) String() string {
@@ -643,6 +645,8 @@ func (enum PoolVolumeType) Values() []PoolVolumeType {
643645
"default_volume_type",
644646
"l_ssd",
645647
"b_ssd",
648+
"sbs_5k",
649+
"sbs_15k",
646650
}
647651
}
648652

@@ -2942,7 +2946,7 @@ func (s *API) GetNodeMetadata(req *GetNodeMetadataRequest, opts ...scw.RequestOp
29422946

29432947
scwReq := &scw.ScalewayRequest{
29442948
Method: "GET",
2945-
Path: "/k8s/v1/regions/" + fmt.Sprint(req.Region) + "/nodes/metadata",
2949+
Path: "/k8s/v1/regions/" + fmt.Sprint(req.Region) + "/node-metadata",
29462950
}
29472951

29482952
var resp NodeMetadata

0 commit comments

Comments
 (0)