diff --git a/charts/inference-stack/values.yaml b/charts/inference-stack/values.yaml index 25ccfe1..746f50a 100644 --- a/charts/inference-stack/values.yaml +++ b/charts/inference-stack/values.yaml @@ -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: diff --git a/compose/docker-compose.yaml b/compose/docker-compose.yaml index f7ce081..341ef94 100644 --- a/compose/docker-compose.yaml +++ b/compose/docker-compose.yaml @@ -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} diff --git a/tests/test_charts.py b/tests/test_charts.py index 6dc8b25..1c1b061 100644 --- a/tests/test_charts.py +++ b/tests/test_charts.py @@ -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}})} @@ -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"])