Skip to content

Commit

Permalink
fix imports for PyOxidizer (#189)
Browse files Browse the repository at this point in the history
* fix: pin certifi to version 2022.06.15.1
* fix: code style
  • Loading branch information
Schille committed Sep 9, 2022
1 parent 870b5ab commit a26a2d5
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 373 deletions.
8 changes: 5 additions & 3 deletions client/gefyra/api/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
from time import sleep
from typing import List, Dict

from gefyra.cluster.resources import get_pods_and_containers_for_workload
from gefyra.configuration import default_configuration
from gefyra.local.bridge import get_all_interceptrequests

from .utils import stopwatch

Expand All @@ -15,7 +13,10 @@
def get_pods_to_intercept(
deployment: str, namespace: str, statefulset: str, pod: str, config
) -> Dict[str, List[str]]:
from gefyra.cluster.resources import get_pods_and_containers_for_pod_name
from gefyra.cluster.resources import (
get_pods_and_containers_for_pod_name,
get_pods_and_containers_for_workload,
)

pods_to_intercept = {}
if deployment:
Expand Down Expand Up @@ -84,6 +85,7 @@ def bridge(
set_gefyra_network_from_cargo,
set_kubeconfig_from_cargo,
)
from gefyra.local.bridge import get_all_interceptrequests

# Check if kubeconfig is available through running Cargo
config = set_kubeconfig_from_cargo(config)
Expand Down
Loading

0 comments on commit a26a2d5

Please sign in to comment.