@@ -286,7 +286,7 @@ def create(self, *args, **kwargs): # noqa
286286 try :
287287 self ._scheduler .quota .get (namespace , quota_name )
288288 except KubeException :
289- self ._scheduler .quota .create (namespace , quota_name , data = quota_spec )
289+ self ._scheduler .quota .create (namespace , quota_name , spec = quota_spec )
290290
291291 try :
292292 self ._scheduler .svc .get (namespace , service )
@@ -1100,6 +1100,9 @@ def _gather_app_settings(self, release, app_settings, process_type, replicas):
11001100 pod_termination_grace_period_seconds = int (config .values .get (
11011101 'KUBERNETES_POD_TERMINATION_GRACE_PERIOD_SECONDS' , settings .KUBERNETES_POD_TERMINATION_GRACE_PERIOD_SECONDS )) # noqa
11021102
1103+ # get pod default resources
1104+ pod_default_resources = json .loads (settings .KUBERNETES_POD_DEFAULT_RESOURCES )
1105+
11031106 # set the image pull policy that is associated with the application container
11041107 image_pull_policy = config .values .get ('IMAGE_PULL_POLICY' , settings .IMAGE_PULL_POLICY )
11051108
@@ -1123,6 +1126,7 @@ def _gather_app_settings(self, release, app_settings, process_type, replicas):
11231126 'replicas' : replicas ,
11241127 'version' : 'v{}' .format (release .version ),
11251128 'app_type' : process_type ,
1129+ 'resources' : pod_default_resources ,
11261130 'build_type' : release .build .type ,
11271131 'healthcheck' : healthcheck ,
11281132 'lifecycle_post_start' : config .lifecycle_post_start ,
0 commit comments