mattermost / mattermost-helm

Mattermost Helm charts for Kubernetes
Apache License 2.0
164 stars 148 forks source link

[mattermost-enterprise-edition] Allow existing config.json #415

Open Moep90 opened 1 year ago

Moep90 commented 1 year ago

Allow to use an existingConfigJson instead of the predefined tmpl or alternativly allow to configure every section with defaults. like:

global:
  TeamSettings:
    enableTeamCreation: true
    enableUserCreation: true
    enableOpenServer: true
.......
  ServiceSettings:

    # already existing
    enableLinkPreviews: true
    enableCustomEmoji: true

  # example additional values
    GoogleDeveloperKey: ""
    EnableOAuthServiceProvider: false
    EnableIncomingWebhooks: true
    EnableOutgoingWebhooks: true
    EnableCommands: true
    EnableOnlyAdminIntegrations: false
    EnablePostUsernameOverride: false
    EnablePostIconOverride: false
.....

....and make use of helm flow control Docs StackOverflow

For example:

  {{- range $v := .Values.global.TeamSettings }}
....
  {{- end }}

or

global:
  existingConfigmapJsonName: myconfigmapjson
# or
global:
  existingConfigmapJson:
    name: myconfigmapjson