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

use release name as default clusterName #354

Merged
merged 6 commits into from
Apr 15, 2019

Conversation

tennix
Copy link
Member

@tennix tennix commented Mar 27, 2019

Making users specify two names for a cluster is verbose and error-prone, if users install two clusters in the same name without specifying the clusterName explicitly, then the second cluster would fail to create because of duplicated clusterName.

This PR uses release name as default clusterName, but also allow users to specify clusterName explicitly in order to make the pod name short if the release name is auto-generated long name. For example, if the release name uses UUID, then specifying a shorter clusterName explicitly would make the resource name more readable using kubectl.

@tennix
Copy link
Member Author

tennix commented Mar 27, 2019

/run-e2e-tests

gregwebs
gregwebs previously approved these changes Mar 27, 2019
Copy link
Contributor

@gregwebs gregwebs left a comment

Choose a reason for hiding this comment

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

I think we will need to make changes to the docs.

Copy link
Contributor

@weekface weekface left a comment

Choose a reason for hiding this comment

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

Rest LGTM


{{- define "cluster.name" -}}
{{- default .Release.Name .Values.clusterName }}
{{- end -}}
Copy link
Contributor

Choose a reason for hiding this comment

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

No newline at the end of file

onlymellb
onlymellb previously approved these changes Mar 28, 2019
Copy link
Contributor

@onlymellb onlymellb left a comment

Choose a reason for hiding this comment

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

LGTM

@tennix tennix dismissed stale reviews from onlymellb and gregwebs via 021a6b5 March 28, 2019 06:15
@weekface
Copy link
Contributor

/run-e2e-tests

@weekface
Copy link
Contributor

Add an e2e test spec to cover this?

@zhouqiang-cl
Copy link

/rebuild

3 similar comments
@zhouqiang-cl
Copy link

/rebuild

@zhouqiang-cl
Copy link

/rebuild

@zhouqiang-cl
Copy link

/rebuild

Copy link
Contributor

@xiaojingchen xiaojingchen left a comment

Choose a reason for hiding this comment

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

LGTM

@xiaojingchen
Copy link
Contributor

/run-e2e-tests

1 similar comment
@weekface
Copy link
Contributor

weekface commented Apr 9, 2019

/run-e2e-tests

@weekface weekface merged commit 59d080b into pingcap:master Apr 15, 2019
@tennix tennix deleted the default-clusterName branch November 12, 2019 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants