containers icon indicating copy to clipboard operation
containers copied to clipboard

Add optional pre-upgrade hook delay

Open mouchar opened this issue 6 months ago • 0 comments

Description of the change

Add optional delay before contacting etcd members in pre-upgrade helm hook checks.

Benefits

More reliable pre-upgrade hook, particularly on kubernetes clusters with slow network initialization. I observed delays between "pod started" and "network ready" events about 600ms, so simply setting this new variable to "1" should be enough in most cases.

Possible drawbacks

None, change is no-op if the variable is not set. If the variable is set, it slows down the helm hook run time by specified number of seconds.

Applicable issues

  • fixes #82322

mouchar avatar Jun 16 '25 16:06 mouchar