Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions charts/inference-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ lens:
key: LITELLM_LENS_SERVICE_TOKEN
image:
digest: sha256:b9c572dbec3d293c46cbec0d0d968125d63e0cda2cabc254e56d405c805c9496
clickhouse:
image: clickhouse/clickhouse-server:26.11.4.11@sha256:630693b4a8bce41954fe497ed371918aefe99434139d2da5786276459722fbb6

prometheus:
alertmanager:
Expand Down
2 changes: 1 addition & 1 deletion compose/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ services:
security_opt: [no-new-privileges:true]

clickhouse:
image: clickhouse/clickhouse-server:26.9.6.6@sha256:eb4870e7ca7ed70c259eebfcfbee6cf797017f6b5436c2926bbbfe3d4d28486e
image: clickhouse/clickhouse-server:26.11.4.11@sha256:630693b4a8bce41954fe497ed371918aefe99434139d2da5786276459722fbb6
environment:
CLICKHOUSE_USER: lens
CLICKHOUSE_PASSWORD: ${CLICKHOUSE_PASSWORD:?Set CLICKHOUSE_PASSWORD to a generated password}
Expand Down
7 changes: 6 additions & 1 deletion tests/test_charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ def test_aws_host_access_is_opt_in_and_uses_admin_secret(self):

@unittest.skipUnless(shutil.which("helm"), "Helm is required for chart contract checks")
def test_gateway_connects_to_lens_only_when_enabled(self):
chart = Path(__file__).resolve().parents[1] / "charts/inference-stack"
root = Path(__file__).resolve().parents[1]
chart = root / "charts/inference-stack"
compose = yaml.safe_load((root / "compose/docker-compose.yaml").read_text())
auth = {"litellm": {"postgresql": {"auth": {"password": "test-only-database-password-0123456789", "postgres-password": "test-only-database-admin-0123456789"}}}}
for enabled in (True, False):
values = {**auth, **({} if enabled else {"lens": {"enabled": False}})}
Expand All @@ -75,6 +77,9 @@ def test_gateway_connects_to_lens_only_when_enabled(self):
self.assertNotIn("LITELLM_LENS_URL", config)
self.assertNotIn("ROOT_REDIRECT_URL", config)
continue
clickhouse = next(r for r in resources if r["kind"] == "StatefulSet" and r["metadata"]["name"] == "inference-stack-lens-clickhouse")
self.assertEqual(clickhouse["spec"]["template"]["spec"]["containers"][0]["image"],
compose["services"]["clickhouse"]["image"])
service = next(r for r in resources if r["kind"] == "Service" and r["metadata"]["name"] == "inference-stack-lens")
self.assertEqual(environment["LENS_URL"], f"http://inference-stack-lens:{service['spec']['ports'][0]['port']}")
self.assertEqual(config["LITELLM_LENS_URL"], environment["LENS_URL"])
Expand Down
Loading