-
Notifications
You must be signed in to change notification settings - Fork 48
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
Conversation
@rfranzke Thanks a lot for the PR. Can you please also adapt the tests to use " |
@@ -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])) |
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.
I think we also need some cleanup logic.
@rfranzke You need rebase this pull request with latest master branch. Please check. |
@rfranzke we will take this up later and make the name consistent. This also helps in looking at config-maps. |
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 theConfigMap
is not. This PR fixes this.Release note: