mattermost-helm icon indicating copy to clipboard operation
mattermost-helm copied to clipboard

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

Open Moep90 opened this issue 1 year ago • 0 comments

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

Moep90 avatar Aug 30 '23 05:08 Moep90