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 PodLogs template #55

Merged
merged 9 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Add PodLogs as helm chart template.

### Changed

- Upgrade Alloy upstream chart from 0.7.0 to 0.9.1
Expand Down
12 changes: 12 additions & 0 deletions helm/alloy/templates/podlogs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{- range $podLog := .Values.podLogs }}
---
apiVersion: monitoring.grafana.com/v1alpha2
kind: PodLogs
metadata:
name: {{ $podLog.name }}
namespace: {{ $podLog.namespace }}
labels:
{{- include "alloy.labels" $ | nindent 4 }}
spec:
{{- $podLog.spec | toYaml | nindent 2 }}
{{- end }}
3 changes: 3 additions & 0 deletions helm/alloy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,6 @@ verticalPodAutoscaler:
# -- Specifies whether recommended updates are applied when a Pod is started and whether recommended updates
# are applied during the life of a Pod. Possible values are "Off", "Initial", "Recreate", and "Auto".
# updateMode: Auto

# Creates PodLogs resources along Alloy
podLogs: []