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

[bitnami/grafana-loki] Network policy review #25904

Merged
merged 2 commits into from
May 16, 2024

Conversation

bpfoster
Copy link
Contributor

Description of the change

Apply the same changes made in PR #25519 to the Loki chart

Review network policy features to allow users cover their needs without forcing specific labels.

Benefits

Users can restrict access to their deployments in a cleaner way, without leaving open doors to specific labeled pods.

Possible drawbacks

None

Applicable issues

Additional information

Checklist

  • Chart version bumped in Chart.yaml according to semver. This is not necessary when the changes only affect README.md files.
  • Variables are documented in the values.yaml and added to the README.md using readme-generator-for-helm
  • Title of the pull request follows this pattern [bitnami/<name_of_the_chart>] Descriptive title
  • All commits signed off and in agreement of Developer Certificate of Origin (DCO)

Apply the same changes made in PR bitnami#25519 to the Loki chart

Signed-off-by: Ben Foster <[email protected]>
@bpfoster bpfoster force-pushed the loki-networkpolicy branch from 653908f to f8648f4 Compare May 15, 2024 12:49
@carrodher carrodher added verify Execute verification workflow for these changes in-progress labels May 15, 2024
@github-actions github-actions bot removed the triage Triage is needed label May 15, 2024
@github-actions github-actions bot removed the request for review from carrodher May 15, 2024 14:27
@github-actions github-actions bot requested a review from juan131 May 15, 2024 14:27
Copy link
Contributor

@juan131 juan131 left a comment

Choose a reason for hiding this comment

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

Thanks for applying the network policies improvements to Grafana Loki! LGTM

{{- range $key, $value := .Values.compactor.networkPolicy.ingressNSMatchLabels }}
{{ $key | quote }}: {{ $value | quote }}
{{- end }}
matchLabels: {{- include "common.tplvalues.render" (dict "value" $ingressNSMatchLabels "context" $ ) | nindent 14 }}
Copy link
Contributor

@juan131 juan131 May 16, 2024

Choose a reason for hiding this comment

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

This $ingressNSMatchLabels variable hasn't been defined.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops - too much blind copy-paste, sorry. Great catch. Fixed!

@bpfoster bpfoster force-pushed the loki-networkpolicy branch from ded6ed9 to f69e394 Compare May 16, 2024 11:52
Copy link
Contributor

@juan131 juan131 left a comment

Choose a reason for hiding this comment

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

Thanks for the fix

@juan131 juan131 merged commit c6b5d76 into bitnami:main May 16, 2024
11 checks passed
@bpfoster bpfoster deleted the loki-networkpolicy branch May 16, 2024 14:33
fmulero pushed a commit to fmulero/charts that referenced this pull request May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grafana-loki solved verify Execute verification workflow for these changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants