Skip to content

Commit

Permalink
charts: magout: support migrationJob
Browse files Browse the repository at this point in the history
  • Loading branch information
ushitora-anqou committed Jan 18, 2025
1 parent 7223a9e commit b52bd6e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions charts/magout/templates/mastodonserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,12 @@ spec:
securityContext:
{{- toYaml . | nindent 6 }}
{{- end }}
migrationJob:
{{- with .Values.mastodonServer.migrationJob.podSecurityContext }}
podSecurityContext:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.mastodonServer.migrationJob.securityContext }}
securityContext:
{{- toYaml . | nindent 6 }}
{{- end }}
12 changes: 12 additions & 0 deletions charts/magout/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,18 @@ mastodonServer:
capabilities:
drop:
- ALL
migrationJob:
podSecurityContext:
runAsNonRoot: true
runAsUser: 991
runAsGroup: 991
seccompProfile:
type: RuntimeDefault
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL

serviceAccount:
# Specifies whether a service account should be created
Expand Down

0 comments on commit b52bd6e

Please sign in to comment.