Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/mattermost-sync/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: mattermost-sync
description: Sync groups and users from Google Workspace to Mattermost
type: application

version: 1.0.9
version: 1.0.10

# App metadata
appVersion: "v1.0.0"
Expand Down
5 changes: 3 additions & 2 deletions charts/mattermost-sync/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ spec:
{{- toYaml .Values.securityContext | nindent 14 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
{{- toYaml .Values.cronjob.command | nindent 12 }}
args:
- "sync_groups_to_mattermost.py"
{{- toYaml .Values.cronjob.args | nindent 12 }}
{{- if .Values.sync.dryRun }}
- "--dry-run"
{{- end }}
command: ["python"]
env:
- name: MATTERMOST_URL
value: {{ .Values.mattermost.url | quote }}
Expand Down
5 changes: 5 additions & 0 deletions charts/mattermost-sync/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ cronjob:
enabled: true
# Schedule in cron format (default: every 4 hours)
schedule: "0 */4 * * *"
# Container entrypoint (command). Default matches the historical behavior.
command: ["python"]
# Container args. Default matches the historical behavior.
# Note: "--dry-run" is appended automatically when sync.dryRun is true.
args: ["sync_groups_to_mattermost.py"]
# Successful job history limit
successfulJobsHistoryLimit: 3
# Failed job history limit
Expand Down
Loading