Skip to content

Commit

Permalink
overwrite container label on logs
Browse files Browse the repository at this point in the history
  • Loading branch information
portswigger-tim committed Oct 24, 2023
1 parent 4692c64 commit 01ae861
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/scan-controller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.0-alpha.9
version: 0.0.0-alpha.10

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
5 changes: 5 additions & 0 deletions charts/scan-controller/templates/podlogs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,9 @@ spec:
selector:
matchLabels:
{{- include "scan-controller.scanner.selectorLabels" . | nindent 8 }}
relabelings:
- source_labels: container
regex: ^([a-z\-]+)-[0-9]+$
target_label: container
action: replace
{{- end }}

0 comments on commit 01ae861

Please sign in to comment.