Skip to content

Commit 33ff8b4

Browse files
authored
chore(k8s): remove sbs-csi migration route (#964)
1 parent edcaafb commit 33ff8b4

File tree

6 files changed

+0
-102
lines changed

6 files changed

+0
-102
lines changed

scaleway-async/scaleway_async/k8s/v1/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
from .types import ListPoolsResponse
7676
from .types import ListVersionsRequest
7777
from .types import ListVersionsResponse
78-
from .types import MigrateClusterToSBSCSIRequest
7978
from .types import NodeMetadata
8079
from .types import RebootNodeRequest
8180
from .types import ReplaceNodeRequest
@@ -165,7 +164,6 @@
165164
"ListPoolsResponse",
166165
"ListVersionsRequest",
167166
"ListVersionsResponse",
168-
"MigrateClusterToSBSCSIRequest",
169167
"NodeMetadata",
170168
"RebootNodeRequest",
171169
"ReplaceNodeRequest",

scaleway-async/scaleway_async/k8s/v1/api.py

-36
Original file line numberDiff line numberDiff line change
@@ -726,42 +726,6 @@ async def reset_cluster_admin_token(
726726

727727
self._throw_on_error(res)
728728

729-
async def migrate_cluster_to_sbscsi(
730-
self,
731-
*,
732-
cluster_id: str,
733-
region: Optional[ScwRegion] = None,
734-
) -> Cluster:
735-
"""
736-
Migrate a cluster to SBS CSI.
737-
Enable the latest CSI compatible with Scaleway Block Storage (SBS) and migrate all existing PersistentVolumes/VolumeSnapshotContents to SBS.
738-
Make sure to have the necessary Quota before running this command.
739-
:param cluster_id: Cluster ID for which the latest CSI compatible with Scaleway Block Storage will be enabled.
740-
:param region: Region to target. If none is passed will use default region from the config.
741-
:return: :class:`Cluster <Cluster>`
742-
743-
Usage:
744-
::
745-
746-
result = await api.migrate_cluster_to_sbscsi(
747-
cluster_id="example",
748-
)
749-
"""
750-
751-
param_region = validate_path_param(
752-
"region", region or self.client.default_region
753-
)
754-
param_cluster_id = validate_path_param("cluster_id", cluster_id)
755-
756-
res = self._request(
757-
"POST",
758-
f"/k8s/v1/regions/{param_region}/clusters/{param_cluster_id}/migrate-to-sbs-csi",
759-
body={},
760-
)
761-
762-
self._throw_on_error(res)
763-
return unmarshal_Cluster(res.json())
764-
765729
async def list_cluster_acl_rules(
766730
self,
767731
*,

scaleway-async/scaleway_async/k8s/v1/types.py

-13
Original file line numberDiff line numberDiff line change
@@ -1824,19 +1824,6 @@ class ListVersionsResponse:
18241824
"""
18251825

18261826

1827-
@dataclass
1828-
class MigrateClusterToSBSCSIRequest:
1829-
cluster_id: str
1830-
"""
1831-
Cluster ID for which the latest CSI compatible with Scaleway Block Storage will be enabled.
1832-
"""
1833-
1834-
region: Optional[ScwRegion]
1835-
"""
1836-
Region to target. If none is passed will use default region from the config.
1837-
"""
1838-
1839-
18401827
@dataclass
18411828
class NodeMetadata:
18421829
id: str

scaleway/scaleway/k8s/v1/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
from .types import ListPoolsResponse
7676
from .types import ListVersionsRequest
7777
from .types import ListVersionsResponse
78-
from .types import MigrateClusterToSBSCSIRequest
7978
from .types import NodeMetadata
8079
from .types import RebootNodeRequest
8180
from .types import ReplaceNodeRequest
@@ -165,7 +164,6 @@
165164
"ListPoolsResponse",
166165
"ListVersionsRequest",
167166
"ListVersionsResponse",
168-
"MigrateClusterToSBSCSIRequest",
169167
"NodeMetadata",
170168
"RebootNodeRequest",
171169
"ReplaceNodeRequest",

scaleway/scaleway/k8s/v1/api.py

-36
Original file line numberDiff line numberDiff line change
@@ -726,42 +726,6 @@ def reset_cluster_admin_token(
726726

727727
self._throw_on_error(res)
728728

729-
def migrate_cluster_to_sbscsi(
730-
self,
731-
*,
732-
cluster_id: str,
733-
region: Optional[ScwRegion] = None,
734-
) -> Cluster:
735-
"""
736-
Migrate a cluster to SBS CSI.
737-
Enable the latest CSI compatible with Scaleway Block Storage (SBS) and migrate all existing PersistentVolumes/VolumeSnapshotContents to SBS.
738-
Make sure to have the necessary Quota before running this command.
739-
:param cluster_id: Cluster ID for which the latest CSI compatible with Scaleway Block Storage will be enabled.
740-
:param region: Region to target. If none is passed will use default region from the config.
741-
:return: :class:`Cluster <Cluster>`
742-
743-
Usage:
744-
::
745-
746-
result = api.migrate_cluster_to_sbscsi(
747-
cluster_id="example",
748-
)
749-
"""
750-
751-
param_region = validate_path_param(
752-
"region", region or self.client.default_region
753-
)
754-
param_cluster_id = validate_path_param("cluster_id", cluster_id)
755-
756-
res = self._request(
757-
"POST",
758-
f"/k8s/v1/regions/{param_region}/clusters/{param_cluster_id}/migrate-to-sbs-csi",
759-
body={},
760-
)
761-
762-
self._throw_on_error(res)
763-
return unmarshal_Cluster(res.json())
764-
765729
def list_cluster_acl_rules(
766730
self,
767731
*,

scaleway/scaleway/k8s/v1/types.py

-13
Original file line numberDiff line numberDiff line change
@@ -1824,19 +1824,6 @@ class ListVersionsResponse:
18241824
"""
18251825

18261826

1827-
@dataclass
1828-
class MigrateClusterToSBSCSIRequest:
1829-
cluster_id: str
1830-
"""
1831-
Cluster ID for which the latest CSI compatible with Scaleway Block Storage will be enabled.
1832-
"""
1833-
1834-
region: Optional[ScwRegion]
1835-
"""
1836-
Region to target. If none is passed will use default region from the config.
1837-
"""
1838-
1839-
18401827
@dataclass
18411828
class NodeMetadata:
18421829
id: str

0 commit comments

Comments
 (0)