Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

[apm-server] Unused "fullnameOverride" parameter #481

Closed
kawat55 opened this issue Feb 13, 2020 · 3 comments
Closed

[apm-server] Unused "fullnameOverride" parameter #481

kawat55 opened this issue Feb 13, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@kawat55
Copy link
Contributor

kawat55 commented Feb 13, 2020

Chart version: 7.6.0

Kubernetes version: 1.14.9

Kubernetes provider: EKS

Helm Version: 2.14.3

Describe the bug:

In apm-server helm chart, "fullnameOverride" doesn't work.
This parameter doesn't seem to be used.
In other helm chart, "fullnameOverride" works.

Got the following deployment name: "apm-server-apm-server"

Steps to reproduce:

helm install elastic/apm-server --name apm-server --set fullnameOverride="apm-server"

Expected behavior:

Deployment name should be "apm-server"

@ralavay
Copy link

ralavay commented Feb 18, 2020

This is because there is no definition of fullnameOverride in _helpers.tpl. Only have to update that block.

{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-"}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}

@jmlrt
Copy link
Member

jmlrt commented Mar 5, 2020

Hi @kawat55 @ralavay ,
Thanks for reporting this issue.
Do you think you could provide a PR to fix it?

@jmlrt jmlrt self-assigned this Mar 5, 2020
@jmlrt jmlrt added the bug Something isn't working label Mar 5, 2020
kawat55 added a commit to kawat55/helm-charts that referenced this issue Mar 6, 2020
@kawat55
Copy link
Contributor Author

kawat55 commented Mar 6, 2020

Added a PR #508.

@jmlrt jmlrt closed this as completed in 66602b9 Mar 6, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants