Skip to content

Commit

Permalink
fix(k8s): change node metadata path to avoid collision with nodes path (
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Nov 7, 2024
1 parent e84e5b2 commit cb65c6d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions api/k8s/v1/k8s_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,9 @@ const (
// Local Block Storage: your system is stored locally on your node hypervisor. Lower latency, no persistence across node replacements.
PoolVolumeTypeLSSD = PoolVolumeType("l_ssd")
// Remote Block Storage: your system is stored on a centralized and resilient cluster. Higher latency, persistence across node replacements.
PoolVolumeTypeBSSD = PoolVolumeType("b_ssd")
PoolVolumeTypeBSSD = PoolVolumeType("b_ssd")
PoolVolumeTypeSbs5k = PoolVolumeType("sbs_5k")
PoolVolumeTypeSbs15k = PoolVolumeType("sbs_15k")
)

func (enum PoolVolumeType) String() string {
Expand All @@ -643,6 +645,8 @@ func (enum PoolVolumeType) Values() []PoolVolumeType {
"default_volume_type",
"l_ssd",
"b_ssd",
"sbs_5k",
"sbs_15k",
}
}

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

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

var resp NodeMetadata
Expand Down

0 comments on commit cb65c6d

Please sign in to comment.