diff --git a/cis-k8s-job/templates/cis-job.yaml b/cis-k8s-job/templates/cis-job.yaml index 2919967..bd6ac14 100644 --- a/cis-k8s-job/templates/cis-job.yaml +++ b/cis-k8s-job/templates/cis-job.yaml @@ -1,16 +1,16 @@ apiVersion: batch/v1 kind: Job metadata: - name: cis-k8s-job + name: cis-k8s-job-{{ now | unixEpoch }} namespace: {{ .Release.Namespace }} spec: # keep the job for 2 hours after successful completion ttlSecondsAfterFinished: 7200 template: metadata: - name: cis-k8s-job + name: cis-k8s-job-{{ now | unixEpoch }} labels: - app: cis-k8s-job + app: cis-k8s-job-{{ now | unixEpoch }} spec: {{- if or (or (contains "master" .Values.toolConfig.nodeType) (contains "controlplane" .Values.toolConfig.nodeType)) (or (contains "master" .Values.toolConfig.targets) (contains "controlplane" .Values.toolConfig.targets)) }} {{- include "masterConfig" .Values.toolConfig | trim | nindent 6 }} diff --git a/k8s-risk-assessment-job/templates/job.yaml b/k8s-risk-assessment-job/templates/job.yaml index 47058f9..a5759fe 100644 --- a/k8s-risk-assessment-job/templates/job.yaml +++ b/k8s-risk-assessment-job/templates/job.yaml @@ -1,7 +1,7 @@ apiVersion: batch/v1 kind: Job metadata: - name: k8s-risk-assessment-job + name: k8s-risk-assessment-job-{{ now | unixEpoch }} namespace: {{ .Release.Namespace }} spec: # keep the job for 2 hours after successful completion @@ -9,7 +9,7 @@ spec: template: metadata: labels: - app: k8s-risk-assessment-job + app: k8s-risk-assessment-job-{{ now | unixEpoch }} spec: {{- if .Values.imagePullSecrets.name }} imagePullSecrets: diff --git a/k8tls-job/templates/k8tls-job.yaml b/k8tls-job/templates/k8tls-job.yaml index f86fc10..d1ad70b 100644 --- a/k8tls-job/templates/k8tls-job.yaml +++ b/k8tls-job/templates/k8tls-job.yaml @@ -1,14 +1,14 @@ apiVersion: batch/v1 kind: Job metadata: - name: k8tls-job + name: k8tls-job-{{ now | unixEpoch }} namespace: {{ .Release.Namespace }} spec: # keep the job for 2 hours after successful completion ttlSecondsAfterFinished: 7200 template: metadata: - name: k8tls-job + name: k8tls-job-{{ now | unixEpoch }} spec: {{- if .Values.imagePullSecrets.name }} imagePullSecrets: diff --git a/kiem-job/templates/job.yaml b/kiem-job/templates/job.yaml index f1ea799..672d14b 100644 --- a/kiem-job/templates/job.yaml +++ b/kiem-job/templates/job.yaml @@ -1,7 +1,7 @@ apiVersion: batch/v1 kind: Job metadata: - name: kiem-job + name: kiem-job-{{ now | unixEpoch }} namespace: {{ .Release.Namespace }} spec: # keep the job for 2 hours after successful completion @@ -9,7 +9,7 @@ spec: template: metadata: labels: - app: kiem-job + app: kiem-job-{{ now | unixEpoch }} spec: {{- if .Values.imagePullSecrets.name }} imagePullSecrets: