Skip to content

Commit

Permalink
removing unused client
Browse files Browse the repository at this point in the history
  • Loading branch information
wilmer05 committed Jul 14, 2023
1 parent 9171a41 commit 86a66da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions paasta_tools/kubernetes_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -3859,14 +3859,13 @@ def mode_to_int(mode: Optional[Union[str, int]]) -> Optional[int]:


def update_crds(
kube_client: KubeClient,
apiextensions: Union[
kube_client.ApiextensionsV1Api, kube_client.ApiextensionsV1beta1Api
],
desired_crds: Collection[
Union[V1CustomResourceDefinition, V1beta1CustomResourceDefinition]
],
existing_crds: V1CustomResourceDefinitionList,
apiextensions: Union[
kube_client.ApiextensionsV1Api, kube_client.ApiextensionsV1beta1Api
],
) -> bool:
success = True
for desired_crd in desired_crds:
Expand Down
3 changes: 1 addition & 2 deletions paasta_tools/setup_kubernetes_crd.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,9 @@ def setup_kube_crd(
desired_crds.append(desired_crd)

if update_crds(
kube_client=kube_client,
apiextensions=apiextension,
desired_crds=desired_crds,
existing_crds=existing_crds,
apiextensions=apiextension,
):
return True
return False
Expand Down

0 comments on commit 86a66da

Please sign in to comment.