-
Notifications
You must be signed in to change notification settings - Fork 499
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
Conversation
/run-e2e-tests |
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 will need to make changes to the docs.
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.
Rest LGTM
|
||
{{- define "cluster.name" -}} | ||
{{- default .Release.Name .Values.clusterName }} | ||
{{- end -}} |
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.
No newline at the end of file
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.
LGTM
/run-e2e-tests |
Add an e2e test spec to cover this? |
/rebuild |
3 similar comments
/rebuild |
/rebuild |
/rebuild |
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.
LGTM
/run-e2e-tests |
1 similar comment
/run-e2e-tests |
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 duplicatedclusterName
.This PR uses release name as default
clusterName
, but also allow users to specifyclusterName
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 shorterclusterName
explicitly would make the resource name more readable usingkubectl
.