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

Make GetConfigmapName consistent #467

Closed
wants to merge 1 commit into from
Closed

Conversation

rfranzke
Copy link
Member

How to categorize this PR?

/area usability
/kind enhancement

What this PR does / why we need it:
All other resources are prefixed with the etcd.Name but the ConfigMap is not. This PR fixes this.

Release note:

NONE

@rfranzke rfranzke requested a review from a team as a code owner November 16, 2022 15:04
@gardener-robot-ci-3 gardener-robot-ci-3 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 Nov 16, 2022
@gardener-robot gardener-robot added area/usability Usability related kind/enhancement Enhancement, improvement, extension needs/review Needs review size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py) labels Nov 17, 2022
@shreyas-s-rao
Copy link
Contributor

shreyas-s-rao commented Nov 17, 2022

@rfranzke Thanks a lot for the PR. Can you please also adapt the tests to use "etcdName-bootstrap-xxxxxx" names for the configmaps? Also, does this work well for new druid reconciling older Etcd resources with the old configmap name?
And can you please also make related changes in the quorum loss doc? Thanks!

@@ -37,7 +37,7 @@ func GetServiceAccountName(etcd *druidv1alpha1.Etcd) string {

// GetConfigmapName returns the name of the configmap based on the given `etcd` object.
func GetConfigmapName(etcd *druidv1alpha1.Etcd) string {
return fmt.Sprintf("etcd-bootstrap-%s", string(etcd.UID[:6]))
return fmt.Sprintf("%s-bootstrap-%s", etcd.Name, string(etcd.UID[:6]))
Copy link
Member

Choose a reason for hiding this comment

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

I think we also need some cleanup logic.

@ishan16696 ishan16696 modified the milestone: v0.15.0 Nov 28, 2022
@gardener-robot gardener-robot added the needs/rebase Needs git rebase label Apr 5, 2023
@gardener-robot
Copy link

@rfranzke You need rebase this pull request with latest master branch. Please check.

@rfranzke rfranzke closed this Jul 11, 2023
@rfranzke rfranzke deleted the rfranzke-patch-1 branch July 11, 2023 07:49
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Jul 11, 2023
@unmarshall
Copy link
Contributor

@rfranzke we will take this up later and make the name consistent. This also helps in looking at config-maps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/usability Usability related kind/enhancement Enhancement, improvement, extension needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/rebase Needs git rebase needs/review Needs review 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.

7 participants