-
Notifications
You must be signed in to change notification settings - Fork 502
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
separation startup scripts and application config from yaml files #149
Conversation
/run-e2e-tests |
@@ -14,3 +14,11 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this | |||
{{- $name := default .Chart.Name .Values.nameOverride -}} | |||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} | |||
{{- end -}} | |||
|
|||
{{- define "tidb-cluster.utils.template" -}} |
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 would like to give the template helpers generic names if they are not specific to our chart. This makes it easier to re-use them in different charts.
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.
Maybe chart.configmap-template
?
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.
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.
ok, lgtm.
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
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.
The pump/drainer startup script should also be put in a configmap to keep consistent with pd/tikv/tidb pod.
@@ -14,3 +14,11 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this | |||
{{- $name := default .Chart.Name .Values.nameOverride -}} | |||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} | |||
{{- end -}} | |||
|
|||
{{- define "tidb-cluster.utils.template" -}} |
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.
Maybe chart.configmap-template
?
The pump/drainer startup script has been separated. |
For the configuration files, I think it's better to add the filename suffix for toml, yaml format. |
I've run
Have you tested the templates? |
/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.
LGTM
…ngcap#149) * separation startup scripts and application config from yaml files
No description provided.