-
Notifications
You must be signed in to change notification settings - Fork 49
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
Enhance Etcd configMap to provide consistency and controllability #812
Enhance Etcd configMap to provide consistency and controllability #812
Conversation
4c392e8
to
cbd7d53
Compare
/assign @shreyas-s-rao |
@anveshreddy18 can you please add gardener/etcd-backup-restore#715 merge and release as a prerequisite to this PR's description? Just so we don't accidentally merge this PR before the changes are etcd-backup-restore are released. |
Sure, I hope your comment itself is sufficient. But I can add that once this PR is reviewed as we may lose any comment that we put right now because of the reviews. And for now the |
cbd7d53
to
fa91efc
Compare
/retest |
@anveshreddy18 rebase with master |
…t-count configurable | use proper url formatting for peer and client urls in etcd config
a22c5c8
to
5ec1735
Compare
/test pull-etcd-druid-integration |
/retest |
@anveshreddy18: The following test failed, say
Full PR test history. Your PR dashboard. Command help for this repository. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
e2e test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anveshreddy18 thanks for making the requested changes.
/lgtm
How to categorize this PR?
/area quality
/kind cleanup
/kind enhancement
What this PR does / why we need it:
This PR is to cleanup the Etcd ConfigMap to :
{etcd.Name}-config
instead ofetcd-bootstrap-<UID>
. This is for consistency with other resources that gets created as part of Etcd Reconciliation, like leases, role, rolebinding, etc and also have a proper nameconfig
for the configMap instead ofbootstrap
. The cleanup logic for the existing configMap with older name will be taken up at a later stage after 2 releases. This issue tracks that.snapshot-count
configurable with the flagsnapshotCount
fromspec.etcd
section of etcd CR thus the operator is able to control the no.of transactions before committing a snapshot to disk if they want to.initial-advertise-peer-urls
andadvertise-client-urls
properties of the configMap and thereby fixing [Enhancement] Simplify etcd configuration and use proper URL instead of using @ as separator #476Previously the fields
initial-advertise-peer-urls
andadvertise-client-urls
of the etcd ConfigMap were constructed using an@
separator in the formatscheme@peerSvcName@namespace@port
which is then parsed by thebackup-restore
container to construct the full URL to be used by theetcd
container as its configuration.This PR aims to modify that to have the fully qualified URL(s) for each
etcd
member in the ConfigMap itself which thenbackup-restore
parses and sends only it's corresponding etcd member's URL(s) to the etcd process.The following is the format in the ConfigMap for the fields
initial-advertise-peer-urls
&advertise-client-urls
.The
additional urls
above is used for e.g. in CPM in the context of Gardener use case. For now from code we only populate the main in-cluster URL, but in future we will modify the API to allow passing these additional urls from the Etcd Spec which will get populated here and be subsequently parsed and sent to etcd process.Which issue(s) this PR fixes:
Fixes #717
Special notes for your reviewer:
Release note: