Skip to main content

environmentd_probe

Function environmentd_probe 

Source
fn environmentd_probe(
    base: Probe,
    operator_default: Option<&Probe>,
    environment_override: Option<&Probe>,
) -> Probe
Expand description

Layers the operator-wide default and then the per-environment override onto base, so each layer only has to set the fields it changes.

Fields set in a later layer win. The handler (exec, grpc, httpGet, tcpSocket) is replaced as a unit when a later layer sets any of them, because Kubernetes rejects a probe with more than one handler.