Skip to content

Commit

Permalink
fix: Truncate Job Name for long index/source name (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrst88 authored Mar 20, 2024
1 parent 0cc0f6b commit 32ac948
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/quickwit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: quickwit
description: Sub-second search & analytics engine on cloud storage.
type: application
version: 0.5.8
version: 0.5.9
appVersion: "v0.7.1"
keywords:
- quickwit
Expand Down
2 changes: 1 addition & 1 deletion charts/quickwit/templates/job-create-indices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
apiVersion: batch/v1
kind: Job
metadata:
name: {{ include "quickwit.fullname" $ }}-index-{{ .index_id }}
name: {{ printf "%s-index-%s" (include "quickwit.fullname" $ | trunc 47) .index_id | trunc 63 | trimSuffix "-" }}
labels:
{{- include "quickwit.labels" $ | nindent 4 }}
annotations:
Expand Down
2 changes: 1 addition & 1 deletion charts/quickwit/templates/job-create-sources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
apiVersion: batch/v1
kind: Job
metadata:
name: {{ include "quickwit.fullname" $ }}-source-{{ .source.source_id }}
name: {{ printf "%s-source-%s" (include "quickwit.fullname" $ | trunc 46) .source.source_id | trunc 63 | trimSuffix "-" }}
labels:
{{- include "quickwit.labels" $ | nindent 4 }}
annotations:
Expand Down

0 comments on commit 32ac948

Please sign in to comment.