Skip to content

Commit

Permalink
chore: truncate version labels
Browse files Browse the repository at this point in the history
  • Loading branch information
portswigger-tim committed Mar 28, 2024
1 parent c1603c6 commit 7781cfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/burpsuite/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: burpsuite
description: Scan it all. With the enterprise-enabled dynamic web vulnerability scanner.
type: application
version: 0.0.6
version: 0.0.7
kubeVersion: ">=1.24.0-0"
keywords:
- burpsuite
Expand Down
4 changes: 2 additions & 2 deletions charts/burpsuite/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Common labels
{{- define "burpsuite.labels" -}}
helm.sh/chart: {{ include "burpsuite.chart" . }}
{{ include "burpsuite.selectorLabels" . }}
app.kubernetes.io/version: {{ (include "burpsuite.enterprise.version" .) | quote }}
app.kubernetes.io/version: {{ (include "burpsuite.enterprise.version" .) | replace "+" "_" | trunc 63 | trimSuffix "-" | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

Expand All @@ -101,7 +101,7 @@ Pod labels
*/}}
{{- define "burpsuite.pod.labels" -}}
{{ include "burpsuite.selectorLabels" . }}
app.kubernetes.io/version: {{ (include "burpsuite.enterprise.version" .) | quote }}
app.kubernetes.io/version: {{ (include "burpsuite.enterprise.version" .) | replace "+" "_" | trunc 63 | trimSuffix "-" | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

Expand Down

0 comments on commit 7781cfe

Please sign in to comment.