Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): bump black from 22.12.0 to 23.1.0 in /client #333

Merged
merged 2 commits into from
Feb 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
70 changes: 33 additions & 37 deletions client/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ tabulate = ">=0.8.10,<0.10.0"

[tool.poetry.dev-dependencies]
flake8-bugbear = "^23.1.20"
black = "^22.12.0"
black = "^23.1.0"
flake8 = "^5.0.4"
flake8-black = "^0.3.6"
pytest = "^7.2.1"
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