Centralize KZG/cfgsync defaults in k8s assets and helm chart

This commit is contained in:
andrussal 2025-12-10 12:45:32 +01:00
parent 081082aded
commit 34be48b5b7
3 changed files with 9 additions and 3 deletions

View File

@ -134,7 +134,10 @@ pub struct PrometheusTemplate {
impl PrometheusTemplate {
fn new(port: u16, platform: Option<String>) -> Self {
Self {
host_port: format!("127.0.0.1:{port}:9090"),
host_port: format!(
"127.0.0.1:{port}:{}",
testing_framework_core::constants::DEFAULT_PROMETHEUS_HTTP_PORT
),
platform,
}
}

View File

@ -2,7 +2,7 @@ image: "nomos-testnet:local"
imagePullPolicy: IfNotPresent
cfgsync:
port: 4400
port: {{ default 4400 (env "NOMOS_CFGSYNC_PORT") | int }}
config: ""
scripts:

View File

@ -143,7 +143,10 @@ fn validate_scripts(root: &Path) -> Result<ScriptPaths, AssetsError> {
}
fn validate_kzg_params(root: &Path) -> Result<PathBuf, AssetsError> {
let path = root.join("testing-framework/assets/stack/kzgrs_test_params");
let rel = env::var("NOMOS_KZG_DIR_REL")
.ok()
.unwrap_or_else(|| testing_framework_core::constants::DEFAULT_KZG_HOST_DIR.to_string());
let path = root.join(rel);
if path.exists() {
Ok(path)
} else {