From ac3ff66dcfdbc83265943fcb8789b3e7973e2457 Mon Sep 17 00:00:00 2001 From: Vladislav Sukhin Date: Thu, 30 Mar 2023 21:10:04 +0300 Subject: [PATCH] fix: escape job name (#445) --- charts/testkube-api/job-container-template.yml | 4 ++-- charts/testkube-api/job-template.yml | 4 ++-- charts/testkube-operator/cronjob-template.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/testkube-api/job-container-template.yml b/charts/testkube-api/job-container-template.yml index 596d80149..3006384da 100644 --- a/charts/testkube-api/job-container-template.yml +++ b/charts/testkube-api/job-container-template.yml @@ -1,7 +1,7 @@ apiVersion: batch/v1 kind: Job metadata: - name: {{ .Name }} + name: "{{ .Name }}" namespace: {{ .Namespace }} spec: {{- if gt .ActiveDeadlineSeconds 0 }} @@ -42,7 +42,7 @@ spec: {{- end }} {{- end }} containers: - - name: {{ .Name }} + - name: "{{ .Name }}" image: {{ .Image }} imagePullPolicy: Always {{- if gt (len .Command) 0 }} diff --git a/charts/testkube-api/job-template.yml b/charts/testkube-api/job-template.yml index 9ed161602..1976cbe86 100644 --- a/charts/testkube-api/job-template.yml +++ b/charts/testkube-api/job-template.yml @@ -1,7 +1,7 @@ apiVersion: batch/v1 kind: Job metadata: - name: {{ .Name }} + name: "{{ .Name }}" namespace: {{ .Namespace }} spec: {{- if gt .ActiveDeadlineSeconds 0 }} @@ -36,7 +36,7 @@ spec: {{- end }} {{- end }} containers: - - name: {{ .Name }} + - name: "{{ .Name }}" image: {{ .Image }} imagePullPolicy: Always command: diff --git a/charts/testkube-operator/cronjob-template.yml b/charts/testkube-operator/cronjob-template.yml index 49bc849fd..dce938405 100644 --- a/charts/testkube-operator/cronjob-template.yml +++ b/charts/testkube-operator/cronjob-template.yml @@ -1,7 +1,7 @@ apiVersion: batch/v1 kind: CronJob metadata: - name: {{ .Name }} + name: "{{ .Name }}" namespace: {{ .Namespace }} labels: testkube: {{ .Resource }}