kaxil commented on a change in pull request #19749:
URL: https://github.com/apache/airflow/pull/19749#discussion_r765783355
##########
File path: chart/tests/test_pgbouncer.py
##########
@@ -266,6 +266,34 @@ def test_command_and_args_overrides_are_templated(self):
assert ["RELEASE-NAME"] ==
jmespath.search("spec.template.spec.containers[0].command", docs[0])
assert ["Helm"] ==
jmespath.search("spec.template.spec.containers[0].args", docs[0])
+ def test_should_add_extra_volume_and_extra_volume_mount(self):
+ docs = render_chart(
+ values={
+ "pgbouncer": {
+ "enabled": True,
+ "extraVolumes": [
+ {
+ "name": "pgbouncer-client-certificates",
+ "secret": {"secretName":
"pgbouncer-client-tls-certificate"},
+ }
+ ],
+ "extraVolumeMounts": [
+ {"name": "pgbouncer-client-certificates", "mountPath":
"/etc/pgbouncer/certs"}
+ ],
+ },
+ },
+ show_only=["templates/pgbouncer/pgbouncer-deployment.yaml"],
+ )
+
+ print(docs[0])
+
Review comment:
```suggestion
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]