Skip to content

Commit

Permalink
feat(kubernetes): support storage v1 api (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime1907 authored Jul 21, 2023
1 parent b9e7f57 commit 1cb729d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# wiremind-kubernetes

## v7.4.0 (2023-07-21)
### Feature
- kubernetes: support StorageV1Api

## v7.3.0 (2023-07-21)
### Feature
- tests: rename `check_not_using_wiremind_cluster` to `check_using_test_cluster`
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.3.0
7.4.0
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,8 @@ def __init__(self, *args: Any, dry_run: bool = False, pretty: bool = False, **kw
class NetworkingV1ApiWithArguments(ClientWithArguments):
def __init__(self, *args: Any, dry_run: bool = False, pretty: bool = False, **kwargs: Any) -> None:
super().__init__(client=kubernetes.client.NetworkingV1Api, dry_run=dry_run, pretty=pretty)


class StorageV1ApiWithArguments(ClientWithArguments):
def __init__(self, *args: Any, dry_run: bool = False, pretty: bool = False, **kwargs: Any) -> None:
super().__init__(client=kubernetes.client.StorageV1Api, dry_run=dry_run, pretty=pretty)
4 changes: 4 additions & 0 deletions src/wiremind_kubernetes/kubernetes_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
CustomObjectsApiWithArguments,
NetworkingV1ApiWithArguments,
RbacAuthorizationV1ApiWithArguments,
StorageV1ApiWithArguments,
)
from .utils import retry_kubernetes_request, retry_kubernetes_request_no_ignore

Expand Down Expand Up @@ -66,6 +67,9 @@ def __init__(
self.client_networking_v1_api: kubernetes.client.NetworkingV1Api = NetworkingV1ApiWithArguments(
dry_run=dry_run, pretty=pretty
)
self.client_storage_v1_api: kubernetes.client.StorageV1Api = StorageV1ApiWithArguments(
dry_run=dry_run, pretty=pretty
)

self.dry_run: bool = dry_run
self.pretty: bool = pretty
Expand Down

0 comments on commit 1cb729d

Please sign in to comment.