Skip to content

Commit

Permalink
fix: expose plugin upload setting (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjnagel committed Feb 1, 2024
1 parent 8f73182 commit f8fbfc2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions chart/templates/mattermost-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: Secret
metadata:
name: mattermost-config
namespace: {{ .Release.Namespace }}
type: Opaque
stringData:
MM_PLUGINSETTINGS_ENABLEUPLOADS: "{{ .Values.config.enablePluginUploads | toString }}"
4 changes: 4 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ sso:

# The subdomain for the mattermost server, will be prefixed to your domain (ex: mattermost.example.com)
subdomain: "chat"

# Additional configuration for Mattermost
config:
enablePluginUploads: false
6 changes: 6 additions & 0 deletions values/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ mattermostApp:
secretKeyRef:
key: MM_FILESETTINGS_AMAZONS3REGION
name: "mattermost-object-store"
# Additional Mattermost Config
- name: MM_PLUGINSETTINGS_ENABLEUPLOADS
valueFrom:
secretKeyRef:
key: MM_PLUGINSETTINGS_ENABLEUPLOADS
name: "mattermost-config"
securityContext:
runAsUser: 2000
runAsGroup: 2000
Expand Down

0 comments on commit f8fbfc2

Please sign in to comment.