Skip to content

Commit

Permalink
fix: escape job name (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsukhin authored Mar 30, 2023
1 parent 16f57a3 commit ac3ff66
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/testkube-api/job-container-template.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: batch/v1
kind: Job
metadata:
name: {{ .Name }}
name: "{{ .Name }}"
namespace: {{ .Namespace }}
spec:
{{- if gt .ActiveDeadlineSeconds 0 }}
Expand Down Expand Up @@ -42,7 +42,7 @@ spec:
{{- end }}
{{- end }}
containers:
- name: {{ .Name }}
- name: "{{ .Name }}"
image: {{ .Image }}
imagePullPolicy: Always
{{- if gt (len .Command) 0 }}
Expand Down
4 changes: 2 additions & 2 deletions charts/testkube-api/job-template.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: batch/v1
kind: Job
metadata:
name: {{ .Name }}
name: "{{ .Name }}"
namespace: {{ .Namespace }}
spec:
{{- if gt .ActiveDeadlineSeconds 0 }}
Expand Down Expand Up @@ -36,7 +36,7 @@ spec:
{{- end }}
{{- end }}
containers:
- name: {{ .Name }}
- name: "{{ .Name }}"
image: {{ .Image }}
imagePullPolicy: Always
command:
Expand Down
2 changes: 1 addition & 1 deletion charts/testkube-operator/cronjob-template.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: {{ .Name }}
name: "{{ .Name }}"
namespace: {{ .Namespace }}
labels:
testkube: {{ .Resource }}
Expand Down

0 comments on commit ac3ff66

Please sign in to comment.