Skip to main content

validate_probe_handlers

Function validate_probe_handlers 

Source
pub fn validate_probe_handlers(probe: &Probe) -> Result<(), Error>
Expand description

Rejects a probe that sets more than one handler (exec, grpc, httpGet, tcpSocket), which Kubernetes would reject when the pod is created.

environmentd_probe only produces a valid probe if every layer passes this check.