-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from defenseunicorns/burn-some-boats
feat: switch to upstream chart directly
- Loading branch information
Showing
30 changed files
with
381 additions
and
256 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,45 @@ | ||
# uds-package-mattermost | ||
# UDS Mattermost Package | ||
|
||
UDS Mattermost Zarf Package | ||
This repo contains the UDS Mattermost Package along with an example bundle and UDS tasks for development. | ||
|
||
## Dependencies | ||
|
||
Mattermost requires two dependencies, postgres and s3 compatible object storage. Wiring Mattermost to your dependencies is done primarily via helm values, which will require the use of a bundle created with uds-cli. | ||
|
||
### Postgres | ||
|
||
Postgres configuration is setup in the `uds-mattermost-config` chart and should be done via bundle overrides (variables or values) like the below: | ||
```yaml | ||
overrides: | ||
mattermost: | ||
uds-mattermost-config: | ||
values: | ||
- path: "postgres.host" | ||
value: "postgresql.dev-postgres.svc.cluster.local" | ||
``` | ||
The full list of override config can be found in the values under `postgres` [here](./chart/values.yaml). In addition a zarf var is exposed for `DB_PASSWORD` for convenience if using import/exports in your bundle. | ||
|
||
### S3 Compatible Object Storage | ||
|
||
Object storage configuration is setup in the `uds-mattermost-config` chart and should be done via bundle overrides (variables or values) like the below: | ||
```yaml | ||
overrides: | ||
mattermost: | ||
uds-mattermost-config: | ||
values: | ||
- path: "objectStorage.endpoint" | ||
value: "minio.dev-minio.svc.cluster.local:9000" | ||
``` | ||
|
||
The full list of override config can be found in the values under `objectStorage` [here](./chart/values.yaml). In addition zarf vars are exposed for `ACCESS_KEY` and `SECRET_KEY` for convenience if using import/exports in your bundle. | ||
|
||
To use IRSA make sure to NOT set the two key variables and add the appropriate role ARN annotation to the service account via an override to `serviceAccount.annotations`. As an example: | ||
```yaml | ||
overrides: | ||
mattermost: | ||
mattermost-enterprise-edition: | ||
values: | ||
- path: "serviceAccount.annotations.irsa/role-arn" | ||
value: "arn:aws:iam::123456789:role/mattermost-role" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{- /* Mattermost uses a gossip protocol for HA clustering. In order for Istio to properly route this traffic it needs to be explicitly defined in a service with a `tcp-` prefix. */ -}} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: mattermost-gossip | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app.kubernetes.io/name: mattermost-enterprise-edition | ||
spec: | ||
type: ClusterIP | ||
clusterIP: None | ||
selector: | ||
app.kubernetes.io/name: mattermost-enterprise-edition | ||
ports: | ||
- name: tcp-gossip | ||
port: 8074 | ||
protocol: TCP | ||
targetPort: 8074 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: mattermost-object-store | ||
namespace: {{ .Release.Namespace }} | ||
type: Opaque | ||
stringData: | ||
MM_FILESETTINGS_AMAZONS3SSL: "{{ .Values.objectStorage.secure | toString }}" | ||
MM_FILESETTINGS_AMAZONS3ACCESSKEYID: "{{ .Values.objectStorage.accessKey }}" | ||
MM_FILESETTINGS_AMAZONS3SECRETACCESSKEY: "{{ .Values.objectStorage.secretKey }}" | ||
MM_FILESETTINGS_AMAZONS3BUCKET: "{{ .Values.objectStorage.bucket }}" | ||
MM_FILESETTINGS_AMAZONS3ENDPOINT: "{{ .Values.objectStorage.endpoint }}" | ||
MM_FILESETTINGS_AMAZONS3REGION: "{{ .Values.objectStorage.region }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: mattermost-postgres | ||
namespace: {{ .Release.Namespace }} | ||
type: Opaque | ||
stringData: | ||
db_connection_string: "postgres://{{ .Values.postgres.username }}:{{ .Values.postgres.password }}@{{ .Values.postgres.host }}:{{ .Values.postgres.port }}/{{ .Values.postgres.dbName }}{{ .Values.postgres.connectionOptions }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: mattermost-sso | ||
namespace: {{ .Release.Namespace }} | ||
type: Opaque | ||
stringData: | ||
MM_GITLABSETTINGS_ENABLE: "{{ .Values.sso.enabled | toString }}" | ||
MM_GITLABSETTINGS_ID: "{{ .Values.sso.client_id }}" | ||
MM_GITLABSETTINGS_SECRET: "{{ .Values.sso.client_secret }}" | ||
MM_GITLABSETTINGS_AUTHENDPOINT: "{{ .Values.sso.auth_endpoint }}" | ||
MM_GITLABSETTINGS_TOKENENDPOINT: "{{ .Values.sso.token_endpoint }}" | ||
MM_GITLABSETTINGS_USERAPIENDPOINT: "{{ .Values.sso.user_api_endpoint }}" | ||
MM_EMAILSETTINGS_ENABLESIGNUPWITHEMAIL: "{{ .Values.sso.enable_sign_up_with_email | toString }}" | ||
MM_EMAILSETTINGS_ENABLESIGNINWITHEMAIL: "{{ .Values.sso.enable_sign_in_with_email | toString }}" | ||
MM_EMAILSETTINGS_ENABLESIGNINWITHUSERNAME: "{{ .Values.sso.enable_sign_in_with_username | toString }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
objectStorage: | ||
secure: true | ||
accessKey: "" | ||
secretKey: "" | ||
bucket: "mattermost" | ||
endpoint: "s3.amazonaws.com" | ||
region: "us-west-1" | ||
|
||
postgres: | ||
username: "mattermost" | ||
password: "" | ||
host: "" | ||
port: 5432 | ||
dbName: "mattermost" | ||
# Example: "?connect_timeout=10&sslmode=disable" | ||
connectionOptions: "" | ||
|
||
sso: | ||
enabled: false | ||
client_id: "" | ||
client_secret: "" | ||
auth_endpoint: "" | ||
token_endpoint: "" | ||
user_api_endpoint: "" | ||
# These should typically be disabled if SSO is enabled | ||
enable_sign_up_with_email: true | ||
enable_sign_in_with_email: true | ||
enable_sign_in_with_username: true | ||
|
||
# The subdomain for the mattermost server, will be prefixed to your domain (ex: mattermost.example.com) | ||
host: "mattermost" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.