Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryDodzin committed Jul 16, 2024
1 parent b357741 commit 3394836
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mirrord/kube/src/api/container/job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ mod test {
port: 3000,
gid: 13,
tls_cert: None,
pod_ips: None,
};

let update = JobVariant::new(&agent, &params).as_update();
Expand Down Expand Up @@ -327,6 +328,7 @@ mod test {
port: 3000,
gid: 13,
tls_cert: None,
pod_ips: None,
};

let update = JobTargetedVariant::new(
Expand All @@ -335,6 +337,7 @@ mod test {
&RuntimeData {
mesh: None,
pod_name: "pod".to_string(),
pod_ips: vec![],
pod_namespace: None,
node_name: "foobaz".to_string(),
container_id: "container".to_string(),
Expand Down
1 change: 1 addition & 0 deletions mirrord/kube/src/api/kubernetes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ impl KubernetesAPI {

let pod_ips = runtime_data
.as_ref()
.filter(|runtime_data| !runtime_data.pod_ips.is_empty())
.map(|runtime_data| runtime_data.pod_ips.join(","));

let params = ContainerParams::new(tls_cert, pod_ips);
Expand Down

0 comments on commit 3394836

Please sign in to comment.