Skip to content

Commit b8dd68f

Browse files
authored
Merge pull request #152 from small-hack/add-security-context-to-db-migrate
clean up security context for db migrate jobs
2 parents 05cb8b2 + 436053c commit b8dd68f

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

charts/mastodon/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type: application
99
# This is the chart version. This version number should be incremented each time you make changes
1010
# to the chart and its templates, including the app version.
1111
# Versions are expected to follow Semantic Versioning (https://semver.org/)
12-
version: 11.0.2
12+
version: 11.0.3
1313

1414
# renovate: image=ghcr.io/mastodon/mastodon
1515
appVersion: v4.4.4

charts/mastodon/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# mastodon
22

3-
![Version: 11.0.1](https://img.shields.io/badge/Version-11.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v4.4.4](https://img.shields.io/badge/AppVersion-v4.4.4-informational?style=flat-square)
3+
![Version: 11.0.3](https://img.shields.io/badge/Version-11.0.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v4.4.4](https://img.shields.io/badge/AppVersion-v4.4.4-informational?style=flat-square)
44

55
Mastodon is a free, open-source social network server based on ActivityPub.
66

charts/mastodon/templates/_db-migrate.tpl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ spec:
3939
{{- end }}
4040
spec:
4141
restartPolicy: Never
42+
{{- with (default .Values.podSecurityContext .Values.mastodon.web.podSecurityContext) }}
43+
securityContext:
44+
{{- toYaml . | nindent 8 }}
45+
{{- end }}
4246
{{- if .Values.mastodon.extraVolumes }}
4347
volumes:
4448
{{- if gt (len .Values.mastodon.extraVolumes) 0 }}
@@ -47,6 +51,10 @@ spec:
4751
{{- end }}
4852
containers:
4953
- name: {{ include "mastodon.fullname" . }}-db-migrate
54+
{{- with (default .Values.securityContext .Values.mastodon.web.securityContext) }}
55+
securityContext:
56+
{{- toYaml . | nindent 12 }}
57+
{{- end }}
5058
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
5159
imagePullPolicy: {{ .Values.image.pullPolicy }}
5260
command:

0 commit comments

Comments
 (0)