Skip to content

Commit

Permalink
fix: remove service-prefix from service deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightknight3000 committed Aug 16, 2024
1 parent bbbe122 commit 5b360ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/k8s/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def delete_deployment(depl_name: str, namespace: str = 'default') -> None:
for name in [depl_name, f'nginx-{depl_name}']:
try:
app_client.delete_namespaced_deployment(async_req=False, name=name, namespace=namespace)
_delete_service(f"service-{name}", namespace)
_delete_service(name, namespace)
except client.exceptions.ApiException as e:
if e.reason != 'Not Found':
print(f"Not Found {name}")
Expand Down

0 comments on commit 5b360ed

Please sign in to comment.