Skip to content

Commit

Permalink
Merge pull request #303 from CAAPIM/otk_job_history
Browse files Browse the repository at this point in the history
[charts/gateway] OTK db maintenance schedule job history
  • Loading branch information
Gazza7205 authored Apr 2, 2024
2 parents 90013b3 + a52f106 commit 2725bb4
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/gateway/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "11.0.00_CR2"
description: This Helm Chart deploys the Layer7 Gateway in Kubernetes.
name: gateway
version: 3.0.24
version: 3.0.25
type: application
home: https://github.com/CAAPIM/apim-charts
maintainers:
Expand Down
5 changes: 5 additions & 0 deletions charts/gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ The Layer7 API Gateway is now running with Java 11 with the release of the v10.1

Things to note and be aware of are the deprecation of TLSv1.0/TLSv1.1 and the JAVA_HOME dir has gone through some changes as well.

## 3.0.25 OTK Schedule job success and failure limts
- Added configurable success and failure job history limit for OTK database maintenance schedule jobs.

## 3.0.24 General Updates
- Custom Volumes for initContainers and Sidecars
- This allows configmaps/secrets to be mounted to initContainers and sideCars
Expand Down Expand Up @@ -603,6 +606,8 @@ OTK Deployment examples can be found [here](/examples/otk)
| `otk.job.podLabels` | OTK Job podLabels | {}
| `otk.job.podAnnotations` | OTK Job podAnnotations | {}
| `otk.job.resources` | OTK Job resources | {}
| `otk.job.scheduledTasksSuccessfulJobsHistoryLimit`| OTK db maintenance scheduled job success history limit | `1` |
| `otk.job.scheduledTasksFailedJobsHistoryLimit`| OTK db maintenance scheduled job failed history limit | `1` |
| `otk.database.type` | OTK database type - mysql/oracle/cassandra | `mysql`
| `otk.database.waitTimeout` | OTK database connection wait timeout in seconds | `60`|
| `otk.database.dbUpgrade` | Enable/Disable OTK DB Upgrade| `true` |
Expand Down
3 changes: 3 additions & 0 deletions charts/gateway/production-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,9 @@ otk:
- name: miscellaneous
schedule: "*/5 * * * *"

scheduledTasksSuccessfulJobsHistoryLimit: 1
scheduledTasksFailedJobsHistoryLimit: 1

labels: {}
# nodeSelector: {}
# tolerations: []
Expand Down
4 changes: 2 additions & 2 deletions charts/gateway/templates/otk-scheduled-task-jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ metadata:
spec:
schedule: {{ .schedule | quote }}
concurrencyPolicy: "Forbid"
successfulJobsHistoryLimit: 1
successfulJobsHistoryLimit: {{ default 1 $.Values.otk.job.scheduledTasksSuccessfulJobsHistoryLimit }}
failedJobsHistoryLimit: {{ default 1 $.Values.otk.job.scheduledTasksFailedJobsHistoryLimit }}
jobTemplate:
spec:
template:
Expand Down Expand Up @@ -69,7 +70,6 @@ spec:
{{- if $.Values.otk.job.tolerations }}
tolerations: {{- toYaml $.Values.otk.job.tolerations | nindent 10 }}
{{- end }}

restartPolicy: Never
---
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions charts/gateway/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ metadata:
{{- end }}
{{- if .Values.additionalAnnotations }}
annotations:
"helm.sh/hook": pre-install,post-upgrade
"helm.sh/hook-weight": "-5"
"helm.sh/hook": pre-install,post-upgrade
"helm.sh/hook-weight": "-5"
{{- range $key, $val := .Values.additionalAnnotations }}
{{ $key }}: "{{ $val }}"
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions charts/gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,9 @@ otk:
- name: miscellaneous
schedule: "*/5 * * * *"

scheduledTasksSuccessfulJobsHistoryLimit: 1
scheduledTasksFailedJobsHistoryLimit: 1

labels: {}
# nodeSelector: {}
# tolerations: []
Expand Down

0 comments on commit 2725bb4

Please sign in to comment.