-
Notifications
You must be signed in to change notification settings - Fork 16.7k
Make value nameOverride overide name completely #2773
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://github.com/kubernetes/kubernetes/wiki/CLA-FAQ to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@@ -11,6 +11,6 @@ Create a default fully qualified app name. | |||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | |||
*/}} | |||
{{- define "gcloud-sqlproxy.fullname" -}} | |||
{{- $name := default .Chart.Name .Values.nameOverride -}} | |||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} | |||
{{- $name := .Values.nameOverride | default (printf "%s-%s" .Release.Name .Release.Name) -}} |
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.
nameOverride
is meant for the name
template. Either add a fullnameOverride
or do something like this: https://github.com/kubernetes/charts/blob/master/incubator/oauth-proxy/templates/_helpers.tpl#L14-L18
Also marking stale. Please fix your CLA. |
@unguiculus Thank you for your input. I added a new parameter fullnameOverride as you proposed. CLA should have been signed now by employer, will find out why its not shown yet. |
/assign @unguiculus |
/ok-to-test |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Tim-Smyth, unguiculus The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
The value "nameOverride" should set the complete name of the deployment/service, not just a part of it.
#2772