kaxil commented on a change in pull request #16080:
URL: https://github.com/apache/airflow/pull/16080#discussion_r639662011
##########
File path: chart/tests/test_git_sync_webserver.py
##########
@@ -148,3 +148,29 @@ def test_should_add_env(self):
assert {"name": "FOO", "value": "bar"} in jmespath.search(
"spec.template.spec.containers[1].env", docs[0]
)
+
+ def test_resources_are_configurable(self):
+ docs = render_chart(
+ values={
+ "airflowVersion": "1.10.14",
+ "dags": {
+ "gitSync": {
+ "enabled": True,
+ "resources": {
+ "limits": {"cpu": "200m", 'memory': "128Mi"},
+ "requests": {"cpu": "300m", 'memory': "169Mi"},
+ },
+ },
+ },
+ },
+ show_only=["templates/webserver/webserver-deployment.yaml"],
+ )
+ assert "128Mi" == jmespath.search(
+ "spec.template.spec.containers[1].resources.limits.memory", docs[0]
+ )
Review comment:
```suggestion
assert "128Mi" ==
jmespath.search("spec.template.spec.containers[1].resources.limits.memory",
docs[0])
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]