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

Helm chart for loki-stack requires template "loki.serviceName"...it does not exist #1566

Closed
dankirkpatrick opened this issue Jan 22, 2020 · 5 comments · Fixed by #1587
Closed
Labels
component/packaging good first issue These are great first issues. If you are looking for a place to start, start here! help wanted We would love help on these issues. Please come help us! keepalive An issue or PR that will be kept alive and never marked as stale. type/bug Somehing is not working as expected

Comments

@dankirkpatrick
Copy link

Describe the bug
When installing the helm chart for loki-stack, I get an error that reads:

Error: template: loki-stack/templates/tests/loki-test-pod.yaml:20:25: executing "loki-stack/templates/tests/loki-test-pod.yaml" at <{{template "loki.serviceName" .}}>: template "loki.serviceName" not defined

To Reproduce
Steps to reproduce the behavior:

  1. Install the helm chart. Type:
helm install loki -n monitor loki/loki-stack

Expected behavior
The helm chart should install instead of giving an error.

Environment:

  • On-premises K8S cluster, provisioned with Kubespray, running on vSphere
  • Deployment tool: helm v3

Screenshots, Promtail config, or terminal output

% helm install loki -n monitor loki/loki-stack -f charts/loki/values.yaml
Error: template: loki-stack/templates/tests/loki-test-pod.yaml:20:25: executing "loki-stack/templates/tests/loki-test-pod.yaml" at <{{template "loki.serviceName" .}}>: template "loki.serviceName" not defined
@cyriltovena
Copy link
Contributor

Interesting it seems to work for me. Which commit are you using for the chart ? I tried from the repo and from master.

@shaikatz
Copy link
Contributor

Looks like for some reason loki.serviceName is defined inside promtail helpers instead of loki helpers.
That produce @dankirkpatrick issue, probably he had disabled promtail.

@cyriltovena
Copy link
Contributor

Right and the test is using that. Seems like a bug to fix.

@cyriltovena cyriltovena added component/packaging good first issue These are great first issues. If you are looking for a place to start, start here! help wanted We would love help on these issues. Please come help us! keepalive An issue or PR that will be kept alive and never marked as stale. kind/bug labels Jan 27, 2020
@Tikam02
Copy link

Tikam02 commented May 16, 2020

Loki-Stack Lint error - git actions failing

[ERROR] templates/: template: loki-stack/templates/tests/loki-test-pod.yaml:22:23: executing "loki-stack/templates/tests/loki-test-pod.yaml" at <.Values.loki.service.port>: nil pointer evaluating interface {}.port

##[error]Process completed with exit code 1.

@jaswanth99999
Copy link

This problem is still in chart v2.6.1. Is there any workaround to resolve this?

@chaudum chaudum added the type/bug Somehing is not working as expected label Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/packaging good first issue These are great first issues. If you are looking for a place to start, start here! help wanted We would love help on these issues. Please come help us! keepalive An issue or PR that will be kept alive and never marked as stale. type/bug Somehing is not working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants