From d91fcc1d9d1c1451939944e31318a197af3d9702 Mon Sep 17 00:00:00 2001 From: andrussal Date: Thu, 18 Dec 2025 09:31:28 +0100 Subject: [PATCH] k8s: default KZG mode to inImage --- .../deployers/k8s/src/infrastructure/assets.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/testing-framework/deployers/k8s/src/infrastructure/assets.rs b/testing-framework/deployers/k8s/src/infrastructure/assets.rs index c8fcc56..0bf78da 100644 --- a/testing-framework/deployers/k8s/src/infrastructure/assets.rs +++ b/testing-framework/deployers/k8s/src/infrastructure/assets.rs @@ -16,7 +16,7 @@ use testing_framework_core::{ topology::generation::GeneratedTopology, }; use thiserror::Error; -use tracing::{debug, info}; +use tracing::{debug, info, warn}; /// Paths and image metadata required to deploy the Helm chart. pub struct RunnerAssets { @@ -82,8 +82,16 @@ pub enum KzgMode { fn kzg_mode() -> KzgMode { match env::var("NOMOS_KZG_MODE").ok().as_deref() { + Some("hostPath") => KzgMode::HostPath, Some("inImage") => KzgMode::InImage, - _ => KzgMode::HostPath, + None => KzgMode::InImage, + Some(other) => { + warn!( + value = other, + "unknown NOMOS_KZG_MODE; defaulting to inImage" + ); + KzgMode::InImage + } } }