Skip to content

Commit

Permalink
chore: reformat files
Browse files Browse the repository at this point in the history
  • Loading branch information
SteinRobert committed Feb 2, 2023
1 parent c82594e commit 8091469
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 10 deletions.
5 changes: 4 additions & 1 deletion client/gefyra/api/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,10 @@ def bridge(
logger.info("Following bridges have been established:")
for ki in kube_ireqs:
for port in ports:
pod_name, ns, = (
(
pod_name,
ns,
) = (
ki["targetPod"],
ki["targetNamespace"],
)
Expand Down
1 change: 0 additions & 1 deletion client/gefyra/api/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ def run(
env_dict = {}
try:
if env_from:

env_from_pod, env_from_container = retrieve_pod_and_container(
env_from, namespace=namespace, config=config
)
Expand Down
1 change: 0 additions & 1 deletion client/gefyra/api/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class StatusSummary(str, Enum):

@dataclass
class GefyraStatus:

summary: StatusSummary
cluster: GefyraClusterStatus
client: GefyraClientStatus
Expand Down
1 change: 0 additions & 1 deletion client/gefyra/cluster/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ def create_operator_deployment(
config: ClientConfiguration,
gefyra_network_subnet: str,
) -> V1Deployment:

template = V1PodTemplateSpec(
metadata=V1ObjectMeta(labels={"app": "gefyra-operator"}),
spec=V1PodSpec(
Expand Down
1 change: 0 additions & 1 deletion client/gefyra/local/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ def handle_docker_create_container(
def handle_docker_run_container(
config: ClientConfiguration, image: str, **kwargs
) -> Container:

# if detach=True is in kwargs, this will return a container; otherwise the container logs (see
# https://docker-py.readthedocs.io/en/stable/containers.html#docker.models.containers.ContainerCollection.run)
# TODO: handle exception(s):
Expand Down
1 change: 0 additions & 1 deletion operator/gefyra/resources/deployments.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def create_stowaway_serviceaccount() -> k8s.client.V1ServiceAccount:


def create_stowaway_deployment() -> k8s.client.V1Deployment:

container = k8s.client.V1Container(
name="stowaway",
image=f"{configuration.STOWAWAY_IMAGE}:{configuration.STOWAWAY_TAG}",
Expand Down
3 changes: 0 additions & 3 deletions operator/gefyra/resources/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
def create_stowaway_nodeport_service(
stowaway_deployment: k8s.client.V1Deployment,
) -> k8s.client.V1Service:

spec = k8s.client.V1ServiceSpec(
type="NodePort",
selector=stowaway_deployment.spec.template.metadata.labels,
Expand Down Expand Up @@ -38,7 +37,6 @@ def create_stowaway_nodeport_service(
def create_stowaway_proxy_service(
stowaway_deployment: k8s.client.V1Deployment, port: int
) -> k8s.client.V1Service:

spec = k8s.client.V1ServiceSpec(
type="ClusterIP",
selector=stowaway_deployment.spec.template.metadata.labels,
Expand All @@ -65,7 +63,6 @@ def create_stowaway_proxy_service(
def create_stowaway_rsync_service(
stowaway_deployment: k8s.client.V1Deployment,
) -> k8s.client.V1Service:

spec = k8s.client.V1ServiceSpec(
type="ClusterIP",
selector=stowaway_deployment.spec.template.metadata.labels,
Expand Down
1 change: 0 additions & 1 deletion operator/gefyra/stowaway.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ async def check_stowaway_ready(stowaway_deployment: k8s.client.V1Deployment):
and s.available_replicas == dep.spec.replicas # noqa
and s.observed_generation >= dep.metadata.generation # noqa
):

stowaway_pod = core_v1_api.list_namespaced_pod(
configuration.NAMESPACE, label_selector="app=stowaway"
)
Expand Down

0 comments on commit 8091469

Please sign in to comment.