Skip to content

Commit

Permalink
fix: mattermost object storage configuration (#81)
Browse files Browse the repository at this point in the history
feat: add ability to add additional cert chain for mattermost
  • Loading branch information
anthonywendt authored Apr 18, 2024
1 parent 0beebda commit 1eb5528
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
12 changes: 12 additions & 0 deletions bundles/uds-core-swf/uds-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,14 @@ packages:
ref: 9.6.1-uds.0-registry1
overrides:
mattermost:
mattermost-enterprise-edition:
variables:
- name: VOLUMES
path: "mattermostApp.extraVolumes"
description: "Used to mount ca certs"
- name: VOLUME_MOUNTS
path: "mattermostApp.extraVolumeMounts"
description: "Used to mount ca certs"
uds-mattermost-config:
variables:
- name: OBJECT_STORE_SECURE
Expand All @@ -362,6 +370,10 @@ packages:
path: "objectStorage.bucket"
description: "Object storage bucket"
default: "mattermost-bucket"
- name: OBJECT_STORE_REGION
path: "objectStorage.region"
description: "Object storage region"
default: "us-east-1"
- name: DB_ENDPOINT
path: "postgres.host"
description: "Postgres DB endpoint"
Expand Down
14 changes: 13 additions & 1 deletion config/uds-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ options:
log_level: info
shared:
DOMAIN: replace.with.your.domain
# ADDITIONAL_CA_CHAIN value must be base64 encoded
ADDITIONAL_CA_CHAIN: replace-me-with-additional-ca-chain
variables:
init:
REGISTRY_HPA_ENABLE: false
Expand All @@ -12,7 +14,7 @@ variables:
# Replace with a valid IP address range
IP_ADDRESS_POOL: "10.0.0.10-10.0.0.20"
core:
# CERT values must be base64 encoded
# TLS CERT and KEY values must be base64 encoded
ADMIN_TLS_CERT: replace-me-cert
ADMIN_TLS_KEY: replace-me-key
TENANT_TLS_CERT: replace-me-cert
Expand Down Expand Up @@ -128,6 +130,16 @@ variables:
OBJECT_STORE_SECURE: "false"
OBJECT_STORE_ENDPOINT: "replace.with.object.store.url"
OBJECT_STORE_BUCKET: "mattermost-bucket"
OBJECT_STORE_REGION: "us-east-1"
VOLUME_MOUNTS:
- name: ca-cert
mountPath: /etc/ssl/certs
readOnly: true
VOLUMES:
- name: ca-cert
secret:
secretName: ca-secret
defaultMode: 0644
nexus:
NEXUS_DB_NAME: "nexusdb"
NEXUS_DB_USERNAME: "postgres"
Expand Down
8 changes: 8 additions & 0 deletions packages/additional-manifests/mattermost/ca-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: Secret
metadata:
name: ca-secret
namespace: mattermost
type: kubernetes.io/opaque
data:
ca.crt: "###ZARF_VAR_ADDITIONAL_CA_CHAIN###"
8 changes: 8 additions & 0 deletions packages/additional-manifests/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ variables:
- name: DOMAIN
description: "Domain to be used in VS hosts and gateway config"
default: "mtsi.bigbang.dev"
- name: ADDITIONAL_CA_CHAIN
description: "Additional CA chain"

components:
- name: gitlab-additional-manifests
Expand All @@ -28,3 +30,9 @@ components:
- name: pepr-policy-exemptions
files:
- pepr-policy-exemptions/rook-ceph-exemption.yaml
- name: mattermost-ca-secret
required: true
manifests:
- name: mattermost-ca-secret
files:
- mattermost/ca-secret.yaml

0 comments on commit 1eb5528

Please sign in to comment.