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

[Bug] Fix Replica Count Update Bug in Custodian Controller #701

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

seshachalam-yv
Copy link
Contributor

How to categorize this PR?
/area control-plane
/kind bug

What this PR does / why we need it:
This PR fixes a bug in the Custodian Controller which was not updating the replica count in the etcd status, while the etcd Controller in Druid was. It ensures that the Replicas field in the etcd status is accurately updated to reflect the CurrentReplicas from the StatefulSet status, similar to the behavior of the etcd Controller. This harmonizes the behavior between the etcd and Custodian Controllers, ensuring consistent replica count reflection in the etcd status.
Which issue(s) this PR fixes:
Fixes # (Include the issue number if there is one)

Special notes for your reviewer:
Please review the added line etcd.Status.Replicas = sts.Status.CurrentReplicas in the updateEtcdStatus function within the Custodian Controller, ensuring it aligns with the project's coding standards and practices.

Release note:

Resolved an issue where the Custodian Controller was not updating the `Replicas` field in the `etcd` status to reflect the `CurrentReplicas` from the StatefulSet status. This fix ensures consistent behavior with the `etcd` Controller in Druid.

This commit fixes a bug where the Custodian Controller was not updating the replica count in the Etcd status, while the Etcd Controller in Druid was.This ensures that the replica count is accurately reflected in the Etcd status.
@seshachalam-yv seshachalam-yv requested a review from a team as a code owner October 5, 2023 05:26
@gardener-robot gardener-robot added area/control-plane Control plane related kind/bug Bug needs/review Needs review size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py) labels Oct 5, 2023
@gardener-robot-ci-1 gardener-robot-ci-1 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Oct 5, 2023
Copy link
Contributor

@shreyas-s-rao shreyas-s-rao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seshachalam-yv thanks for the timely fix!
/lgtm

@gardener-robot gardener-robot added reviewed/lgtm Has approval for merging and removed needs/review Needs review labels Oct 5, 2023
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Oct 5, 2023
@seshachalam-yv seshachalam-yv merged commit 2b0aee9 into hotfix-v0.20 Oct 5, 2023
@seshachalam-yv seshachalam-yv deleted the fix-custodian-replica-update branch October 5, 2023 06:40
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/control-plane Control plane related kind/bug Bug needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) reviewed/lgtm Has approval for merging reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py) status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants