We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cb451d commit f082f51Copy full SHA for f082f51
policy-controller/k8s/index/src/inbound/pod.rs
@@ -43,7 +43,12 @@ pub(crate) fn tcp_ports_by_name(spec: &k8s::PodSpec) -> HashMap<String, PortSet>
43
/// Pod and the paths for which probes are expected.
44
pub(crate) fn pod_http_probes(pod: &k8s::PodSpec) -> PortMap<BTreeSet<String>> {
45
let mut probes = PortMap::<BTreeSet<String>>::default();
46
- for (port, path) in pod.containers.iter().flat_map(container_http_probe_paths) {
+ for (port, path) in pod
47
+ .containers
48
+ .iter()
49
+ .chain(pod.init_containers.iter().flatten())
50
+ .flat_map(container_http_probe_paths)
51
+ {
52
probes.entry(port).or_default().insert(path);
53
}
54
probes
0 commit comments