Skip to content

Commit

Permalink
feat(oxauth-key-rotation): add schedule property
Browse files Browse the repository at this point in the history
  • Loading branch information
misba7 committed Aug 27, 2024
1 parent 12962f1 commit f2f93c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ metadata:
{{ toYaml .Values.additionalAnnotations | indent 4 }}
{{- end }}
spec:
{{- if ne .Values.cronJobSchedule "" }}
schedule: {{ .Values.cronJobSchedule | quote }}
{{- else }}
schedule: "@every {{ .Values.keysLife }}h"
{{- end }}
concurrencyPolicy: Forbid
jobTemplate:
spec:
Expand Down
4 changes: 3 additions & 1 deletion pygluu/kubernetes/templates/helm/gluu/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2120,7 +2120,9 @@ oxauth-key-rotation:
tag: 4.5.5-1
# -- Image Pull Secrets
pullSecrets: [ ]
# -- Auth server key rotation keys life in hours
# -- Auth server key rotation job schedule
cronJobSchedule: ""
# -- Auth server key rotation keys life in hours. Used only if cronJobSchedule is not set.
keysLife: 48
# -- Set key selection strategy used by Auth server
keysStrategy: NEWER
Expand Down

0 comments on commit f2f93c3

Please sign in to comment.