def METHOD_NAME(self, kube_version):
    """Test pgbouncer certgenerator sslmode opts result."""
    docs = render_chart(
        kube_version=kube_version,
        values={"airflow": {"pgbouncer": {"enabled": True, "sslmode": "require"}}},
        show_only="templates/generate-ssl.yaml",
    )
    assert len(docs) == 4
    assert "ServiceAccount" == jmespath.search("kind", docs[0])
    assert "Role" == jmespath.search("kind", docs[1])
    assert expected_rbac in docs[1]["rules"]
    assert "RoleBinding" == jmespath.search("kind", docs[2])
    assert docs[3]["spec"]["template"]["spec"]["affinity"] == {}