Skip to content

Commit

Permalink
Actually use the correct docker image when docker_image_name is used
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-ds committed Feb 5, 2025
1 parent 3eaf1c2 commit 2de0502
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions linera-service/src/cli_wrappers/helmfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ impl HelmFile {
github_root: &Path,
num_shards: usize,
cluster_id: u32,
docker_image_name: String,
) -> Result<()> {
let chart_dir = format!("{}/kubernetes/linera-validator", github_root.display());

Expand All @@ -29,6 +30,7 @@ impl HelmFile {
format!("working/server_{server_config_id}.json"),
)
.env("LINERA_HELMFILE_SET_NUM_SHARDS", num_shards.to_string())
.env("LINERA_HELMFILE_LINERA_IMAGE", docker_image_name)
.arg("sync")
.arg("--wait")
.args(["--kube-context", &format!("kind-{}", cluster_id)])
Expand Down
2 changes: 1 addition & 1 deletion linera-service/src/cli_wrappers/local_kubernetes_net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ impl LocalKubernetesNet {
base_dir.join(&server_config_filename),
)?;

HelmFile::sync(i, &github_root, num_shards, cluster_id).await?;
HelmFile::sync(i, &github_root, num_shards, cluster_id, docker_image_name).await?;

let mut kubectl_instance = kubectl_instance.lock().await;
let output = kubectl_instance.get_pods(cluster_id).await?;
Expand Down

0 comments on commit 2de0502

Please # to comment.