internal/natscluster, docs: a podTemplate probe or lifecycle hook naming another handler replaces the rendered one #62

Merged
mikluko merged 2 commits from mikluko/octant/2407-probe-handler into main 2026-10-05 16:29:29 +00:00
mikluko commented 2026-10-05 16:17:27 +00:00 (Migrated from github.com)

The merge patch now sets to null each handler a probe or lifecycle hook override does not name, so tcpSocket, grpc, exec or sleep over the rendered httpGet (or over the rendered preStop exec) no longer yields an object with two handlers, which the API server refuses. A handler of the rendered kind still merges field by field and keeps the rendered port.

A different-kind handler that omits port is not given the rendered one: grpc takes only a number and the rendered port is the name monitor.

The merge patch now sets to null each handler a probe or lifecycle hook override does not name, so `tcpSocket`, `grpc`, `exec` or `sleep` over the rendered `httpGet` (or over the rendered `preStop` `exec`) no longer yields an object with two handlers, which the API server refuses. A handler of the rendered kind still merges field by field and keeps the rendered port. A different-kind handler that omits `port` is not given the rendered one: grpc takes only a number and the rendered port is the name `monitor`.
Sign in to join this conversation.
No description provided.