Add an exit message when the certificate check triggers a fatal exit (via cancel()). When cancel() is called, this cancels the main context which causes the webhook to shutdown. A return is also added to ensure the message "valid" comes out right after "invalid" like so: "certs are not valid at..." "certs are valid" Signed-off-by: Eric Stokes <fernferret@gmail.com>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||