Skip to content

Commit

Permalink
podLogs relabelings
Browse files Browse the repository at this point in the history
  • Loading branch information
portswigger-tim committed Oct 24, 2023
1 parent 80a610d commit 34b580f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
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.11
version: 0.0.0-alpha.12

# 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
8 changes: 5 additions & 3 deletions charts/scan-controller/templates/podlogs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ spec:
matchLabels:
{{- include "scan-controller.scanner.selectorLabels" . | nindent 8 }}
relabelings:
- source_labels:
- sourceLabels:
- container
regex: ^([a-z\-]+)-[0-9]+$
target_label: container
action: replace
targetLabel: task
- action: replace
replacement: scanner
targetLabel: container
{{- end }}

0 comments on commit 34b580f

Please sign in to comment.