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

add missing tls config for loki writer #847

Closed
wants to merge 2 commits into from
Closed

Conversation

ohayak
Copy link
Contributor

@ohayak ohayak commented Nov 7, 2024

add missing tls config for loki writer

add missing tls config for loki writer
@ohayak ohayak requested a review from petewall as a code owner November 7, 2024 13:04
@ohayak ohayak changed the title Update _destination_loki.tpl add missing tls config for loki writer Nov 8, 2024
Copy link
Collaborator

@petewall petewall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking good. Thanks for adding it.
run make clean build test at the top level and it should also include any generated file changes.

Note that usesKubernetesSecret was a bug in other files. It should be usesSecret.

{{- if eq (include "secrets.usesSecret" (dict "object" . "key" "tls.ca")) "true" }}
ca_pem = {{ include "secrets.read" (dict "object" . "key" "tls.ca" "nonsensitive" true) }}
{{- end }}
{{- if eq (include "secrets.usesKubernetesSecret" .) "true" }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{- if eq (include "secrets.usesKubernetesSecret" .) "true" }}
{{- if eq (include "secrets.usesSecret" (dict "object" . "key" "tls.cert")) "true" }}

{{- if eq (include "secrets.usesKubernetesSecret" .) "true" }}
cert_pem = {{ include "secrets.read" (dict "object" . "key" "tls.cert" "nonsensitive" true) }}
{{- end }}
{{- if eq (include "secrets.usesKubernetesSecret" .) "true" }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{- if eq (include "secrets.usesKubernetesSecret" .) "true" }}
{{- if eq (include "secrets.usesSecret" (dict "object" . "key" "tls.key")) "true" }}

@ohayak ohayak requested a review from a team as a code owner November 12, 2024 10:29
@ohayak ohayak closed this Nov 12, 2024
@ohayak ohayak deleted the patch-2 branch November 12, 2024 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants