-
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.
- Loading branch information
Showing
14 changed files
with
93 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
".": "9.3.0-uds.1" | ||
".": "9.3.0-uds.2" | ||
} |
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,46 @@ | ||
# uds-package-mattermost | ||
|
||
UDS Mattermost Zarf Package | ||
|
||
## Dependencies | ||
|
||
Mattermost requires two dependencies, postgres and s3 compatible object storage. Wiring Mattermost to your dependencies is done via secrets created in the `mattermost` namespace. | ||
|
||
### Postgres | ||
|
||
You should create a secret named `mattermost-postgres` with a single key containing the DB connection string like the following: | ||
|
||
```yaml | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: mattermost-postgres | ||
namespace: mattermost | ||
type: kubernetes.io/opaque | ||
stringData: | ||
DB_CONNECTION_STRING: "postgres://username:password@hostname:port/dbname?postgresoptions" | ||
``` | ||
|
||
### S3 Compatible Object Storage | ||
|
||
You should create a secret named `mattermost-object-store` with a number of keys matching the below: | ||
|
||
```yaml | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: mattermost-object-store | ||
namespace: mattermost | ||
type: kubernetes.io/opaque | ||
stringData: | ||
secure_connection: <true/false> # Typically false for insecure connections like MinIO | ||
access_key: <your-access-key> | ||
secret_key: <your-secret-key> | ||
region: <your-region> | ||
bucket: <your-bucket> | ||
endpoint: <your-endpoint> | ||
``` | ||
|
||
To use IRSA make sure to set the two keys to empty strings and add the appropriate annotations to the service account via `serviceAccount.annotations` (override in a UDS Bundle). | ||
|
||
TODO: Figure out if this setup works and a better way to handle the keys... |
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,13 +1,13 @@ | ||
# Source: bigbang/templates/mattermost/secret-objectstore.yaml | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: mattermost-object-store | ||
namespace: mattermost | ||
type: kubernetes.io/opaque | ||
stringData: | ||
MM_FILESETTINGS_AMAZONS3SSL: "false" | ||
MM_FILESETTINGS_AMAZONS3ACCESSKEYID: ###ZARF_VAR_ACCESS_KEY### | ||
MM_FILESETTINGS_AMAZONS3SECRETACCESSKEY: ###ZARF_VAR_SECRET_KEY### | ||
MM_FILESETTINGS_AMAZONS3BUCKET: "uds-mattermost-dev" | ||
MM_FILESETTINGS_AMAZONS3ENDPOINT: "minio.dev-minio.svc.cluster.local:9000" | ||
secure_connection: "false" | ||
access_key: ###ZARF_VAR_ACCESS_KEY### | ||
secret_key: ###ZARF_VAR_SECRET_KEY### | ||
region: "minio" | ||
bucket: "uds-mattermost-dev" | ||
endpoint: "minio.dev-minio.svc.cluster.local:9000" |
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 |
---|---|---|
|
@@ -34,7 +34,6 @@ tasks: | |
|
||
- name: test-package | ||
actions: | ||
- task: test:health-check | ||
- task: test:ingress | ||
|
||
- name: cleanup | ||
|
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
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 +1 @@ | ||
9.3.0-uds.1 | ||
9.3.0-uds.2 |
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