mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-01-06 23:33:07 +00:00
Centralize KZG/cfgsync defaults in k8s assets and helm chart
This commit is contained in:
parent
081082aded
commit
34be48b5b7
@ -134,7 +134,10 @@ pub struct PrometheusTemplate {
|
|||||||
impl PrometheusTemplate {
|
impl PrometheusTemplate {
|
||||||
fn new(port: u16, platform: Option<String>) -> Self {
|
fn new(port: u16, platform: Option<String>) -> Self {
|
||||||
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,
|
platform,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@ image: "nomos-testnet:local"
|
|||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
|
||||||
cfgsync:
|
cfgsync:
|
||||||
port: 4400
|
port: {{ default 4400 (env "NOMOS_CFGSYNC_PORT") | int }}
|
||||||
config: ""
|
config: ""
|
||||||
|
|
||||||
scripts:
|
scripts:
|
||||||
|
|||||||
@ -143,7 +143,10 @@ fn validate_scripts(root: &Path) -> Result<ScriptPaths, AssetsError> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn validate_kzg_params(root: &Path) -> Result<PathBuf, 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() {
|
if path.exists() {
|
||||||
Ok(path)
|
Ok(path)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user