diff --git a/paasta_tools/kubernetes_tools.py b/paasta_tools/kubernetes_tools.py index b0bb828a0a..d852f77c97 100644 --- a/paasta_tools/kubernetes_tools.py +++ b/paasta_tools/kubernetes_tools.py @@ -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. @@ -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)],