Skip to content

Add optional pre-upgrade hook delay #82434

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

mouchar
Copy link

@mouchar mouchar commented Jun 16, 2025

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

On clusters with slow network initialization the pre-upgrade hook
may fail when etcdctl tries to contact etcd members before pod network
is actually initialized. Optional customizable delay can be injected
before running etcdctl to give kubelet enough time to initialize
network.

fixes bitnami#82322

Signed-off-by: Robert Moucha <[email protected]>
@carrodher carrodher added verify Execute verification workflow for these changes in-progress labels Jun 17, 2025
@github-actions github-actions bot removed the triage Triage is needed label Jun 17, 2025
@github-actions github-actions bot removed the request for review from carrodher June 17, 2025 05:21
@github-actions github-actions bot requested a review from alvneiayu June 17, 2025 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
etcd in-progress verify Execute verification workflow for these changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bitnami/etcd] retrieable preupgrade.sh
3 participants