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

Discrepancy between Logstash Helm Chart and docs for pipelinesRef #7957

Closed
wescran opened this issue Jul 23, 2024 · 0 comments · Fixed by #7958
Closed

Discrepancy between Logstash Helm Chart and docs for pipelinesRef #7957

wescran opened this issue Jul 23, 2024 · 0 comments · Fixed by #7958
Assignees
Labels
>bug Something isn't working v2.14.0

Comments

@wescran
Copy link

wescran commented Jul 23, 2024

Bug Report

What did you do?
I have a found a discrepancy between the helm chart for Logstash and what the documentation describes for configuring pipelines using pipelinesRef

What did you expect to see?
As per the Logstash helm chart, the pipelinesRef object shows that the format should be:

pipelinesRef:
  secretRef:
    secretName: <secret>

However the Logstash ECK docs define the correct usage.

  pipelinesRef:
    secretName: <secret>

I expected to see some sort of error when using the incorrect format.

What did you see instead? Under which circumstances?
Nothing. I was confused as to why my logstash deployment was not using my configured pipelines. I discovered there was an error when I looked at the logstash resource. It only showed an empty object for pipelinesRef

spec:
  count: 1
  elasticsearchRefs:
  - clusterName: eck
    name: elasticsearch
  monitoring:
    logs: {}
    metrics: {}
  pipelinesRef: {}

I looked at the template for the logstash helm chart, and it technically accepts any yaml after the pipelinesRef key

  {{- with .Values.pipelinesRef }}
  pipelinesRef:
    {{- toYaml . | nindent 4 }}
  {{- end }}

And the test fails to catch this as well as it uses the incorrect definition.

  - it: should render pipelinesRef properly
    set:
      pipelinesRef:
        secretRef:
          secretName: pipelineLogstashSecretName
    asserts:
      - equal:
          path: spec.pipelinesRef.secretRef.secretName
          value: pipelineLogstashSecretName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug Something isn't working v2.14.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants