Implement oc set container-hook. #17489
Labels
component/cli
kind/feature
Categorizes issue or PR as related to a new feature.
lifecycle/frozen
Indicates that an issue or PR should not be auto-closed due to staleness.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
priority/P2
The idea of implementing
oc set container-hook
was mentioned in #9040 but it appears it was never implemented even thoughoc set probe
andoc set deployment-hook
were.The command would need to support
--post-start
and--pre-stop
options, along with similar options tooc set probe
for--open-tcp
,--get-url
and--
options. Would also need a--container
option to specify in which container when there is more than one in the pod and using--
to execute a command.Only way to set these from the command line involves using
oc edit
oroc patch
making them not as accessible as probes and deployment hooks.The text was updated successfully, but these errors were encountered: