Skip to content
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

[bitnami/etcd] Add pre-upgrade hook #31161

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

[bitnami/etcd] Add pre-upgrade hook #31161

wants to merge 6 commits into from

Conversation

pckhoi
Copy link

@pckhoi pckhoi commented Dec 26, 2024

Description of the change

Benefits

Benefits are described more extensively in bitnami/containers#75906 but here are the main points:

  • Removing members in pre-upgrade hook is more reliable and with fewer edge cases than in pre-stop hook
  • It is far safer to query other members to know whether the cluster is new than to rely on initialClusterState parameter

Possible drawbacks

  • If during initialization, the member cannot connect to other members because of a network outage then it will think that it is starting a new cluster. However, I don't think there is any good solution there except manual recovery.

Applicable issues

Additional information

⚠️ It's needed to cut a new bitnami/common release and use it in this chart, see #31164

Checklist

  • Chart version bumped in Chart.yaml according to semver. This is not necessary when the changes only affect README.md files.
  • Variables are documented in the values.yaml and added to the README.md using readme-generator-for-helm
  • Title of the pull request follows this pattern [bitnami/<name_of_the_chart>] Descriptive title
  • All commits signed off and in agreement of Developer Certificate of Origin (DCO)

@github-actions github-actions bot added the triage Triage is needed label Dec 26, 2024
@github-actions github-actions bot requested a review from carrodher December 26, 2024 04:49
@carrodher
Copy link
Member

Thanks for your contribution!! Just so you know, to run our test suite, separate PRs per chart must be created. In this case, two different PRs are required: one for common and another one for etcd.

@pckhoi
Copy link
Author

pckhoi commented Dec 26, 2024

Sure, I have just created this one: #31164

Signed-off-by: Carlos Rodríguez Hernández <[email protected]>
Signed-off-by: Carlos Rodríguez Hernández <[email protected]>
Signed-off-by: Bitnami Containers <[email protected]>
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] etcd pods are unable to join existing cluster on node drain
5 participants