Merge "CronJobs: Allow cronjob history to be controlled"
This commit is contained in:
commit
cb41a8f1db
@ -25,12 +25,14 @@ limitations under the License.
|
|||||||
{{- $serviceAccountName := "cinder-volume-usage-audit" }}
|
{{- $serviceAccountName := "cinder-volume-usage-audit" }}
|
||||||
{{ tuple $envAll $dependencies $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
{{ tuple $envAll $dependencies $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
||||||
---
|
---
|
||||||
apiVersion: batch/v2alpha1
|
apiVersion: batch/v1beta1
|
||||||
kind: CronJob
|
kind: CronJob
|
||||||
metadata:
|
metadata:
|
||||||
name: cinder-volume-usage-audit
|
name: cinder-volume-usage-audit
|
||||||
spec:
|
spec:
|
||||||
schedule: {{ .Values.jobs.volume_usage_audit.cron | quote }}
|
schedule: {{ .Values.jobs.volume_usage_audit.cron | quote }}
|
||||||
|
successfulJobsHistoryLimit: {{ .Values.jobs.volume_usage_audit.history.success }}
|
||||||
|
failedJobsHistoryLimit: {{ .Values.jobs.volume_usage_audit.history.failed }}
|
||||||
concurrencyPolicy: Forbid
|
concurrencyPolicy: Forbid
|
||||||
jobTemplate:
|
jobTemplate:
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -51,6 +51,9 @@ images:
|
|||||||
jobs:
|
jobs:
|
||||||
volume_usage_audit:
|
volume_usage_audit:
|
||||||
cron: "*/5 * * * *"
|
cron: "*/5 * * * *"
|
||||||
|
history:
|
||||||
|
success: 3
|
||||||
|
failed: 1
|
||||||
|
|
||||||
pod:
|
pod:
|
||||||
user:
|
user:
|
||||||
|
@ -53,12 +53,14 @@ subjects:
|
|||||||
name: {{ $serviceAccountName }}
|
name: {{ $serviceAccountName }}
|
||||||
namespace: {{ $envAll.Release.Namespace }}
|
namespace: {{ $envAll.Release.Namespace }}
|
||||||
---
|
---
|
||||||
apiVersion: batch/v2alpha1
|
apiVersion: batch/v1beta1
|
||||||
kind: CronJob
|
kind: CronJob
|
||||||
metadata:
|
metadata:
|
||||||
name: keystone-credential-rotate
|
name: keystone-credential-rotate
|
||||||
spec:
|
spec:
|
||||||
schedule: {{ .Values.jobs.credential_rotate.cron | quote }}
|
schedule: {{ .Values.jobs.credential_rotate.cron | quote }}
|
||||||
|
successfulJobsHistoryLimit: {{ .Values.jobs.credential_rotate.history.success }}
|
||||||
|
failedJobsHistoryLimit: {{ .Values.jobs.credential_rotate.history.failed }}
|
||||||
concurrencyPolicy: Forbid
|
concurrencyPolicy: Forbid
|
||||||
jobTemplate:
|
jobTemplate:
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -53,12 +53,14 @@ subjects:
|
|||||||
name: {{ $serviceAccountName }}
|
name: {{ $serviceAccountName }}
|
||||||
namespace: {{ $envAll.Release.Namespace }}
|
namespace: {{ $envAll.Release.Namespace }}
|
||||||
---
|
---
|
||||||
apiVersion: batch/v2alpha1
|
apiVersion: batch/v1beta1
|
||||||
kind: CronJob
|
kind: CronJob
|
||||||
metadata:
|
metadata:
|
||||||
name: keystone-fernet-rotate
|
name: keystone-fernet-rotate
|
||||||
spec:
|
spec:
|
||||||
schedule: {{ .Values.jobs.fernet_rotate.cron | quote }}
|
schedule: {{ .Values.jobs.fernet_rotate.cron | quote }}
|
||||||
|
successfulJobsHistoryLimit: {{ .Values.jobs.fernet_rotate.history.success }}
|
||||||
|
failedJobsHistoryLimit: {{ .Values.jobs.fernet_rotate.history.failed }}
|
||||||
concurrencyPolicy: Forbid
|
concurrencyPolicy: Forbid
|
||||||
jobTemplate:
|
jobTemplate:
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -247,6 +247,9 @@ jobs:
|
|||||||
cron: "0 0 * * 0"
|
cron: "0 0 * * 0"
|
||||||
user: keystone
|
user: keystone
|
||||||
group: keystone
|
group: keystone
|
||||||
|
history:
|
||||||
|
success: 3
|
||||||
|
failed: 1
|
||||||
credential_setup:
|
credential_setup:
|
||||||
user: keystone
|
user: keystone
|
||||||
group: keystone
|
group: keystone
|
||||||
@ -256,6 +259,9 @@ jobs:
|
|||||||
migrate_wait: 120
|
migrate_wait: 120
|
||||||
user: keystone
|
user: keystone
|
||||||
group: keystone
|
group: keystone
|
||||||
|
history:
|
||||||
|
success: 3
|
||||||
|
failed: 1
|
||||||
|
|
||||||
conf:
|
conf:
|
||||||
keystone:
|
keystone:
|
||||||
|
Loading…
Reference in New Issue
Block a user