Skip to content

Commit

Permalink
nit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayOO8 committed Aug 1, 2023
1 parent 7e2d256 commit 1d63a1d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions paasta_tools/kubernetes_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,11 @@
DEFAULT_USE_PROMETHEUS_CPU = False
DEFAULT_USE_PROMETHEUS_UWSGI = True
DEFAULT_USE_RESOURCE_METRICS_CPU = True
DEFAULT_SIDECAR_REQUEST = {"cpu": 0.1, "memory": "1024Mi", "ephemeral-storage": "256Mi"}
DEFAULT_SIDECAR_REQUEST: KubeContainerResourceRequest = {
"cpu": 0.1,
"memory": "1024Mi",
"ephemeral-storage": "256Mi",
}


# conditions is None when creating a new HPA, but the client raises an error in that case.
Expand Down Expand Up @@ -1123,7 +1127,9 @@ def get_gunicorn_exporter_sidecar_container(
if self.should_run_gunicorn_exporter_sidecar():
return V1Container(
image=system_paasta_config.get_gunicorn_exporter_sidecar_image_url(),
resources=self.get_sidecar_resource_requirements("gunicorn_exporter"),
resources=self.get_sidecar_resource_requirements(
"gunicorn_exporter", system_paasta_config
),
name=GUNICORN_EXPORTER_POD_NAME,
env=self.get_kubernetes_environment(),
ports=[V1ContainerPort(container_port=9117)],
Expand Down

0 comments on commit 1d63a1d

Please sign in to comment.