Skip to content

Commit

Permalink
Add support for integrated MariaDB and PostgreSQL (#223)
Browse files Browse the repository at this point in the history
* Add support for integrated MariaDB and PostgreSQL

* Bump chart version

* Update values.yaml to retain behaviour

Signed-off-by: Jonathan <me@jonathangazeley.com>

---------

Signed-off-by: Jonathan <me@jonathangazeley.com>
  • Loading branch information
djjudas21 committed Apr 1, 2024
1 parent d24adff commit 7bbbb37
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
10 changes: 9 additions & 1 deletion charts/authelia/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@ home: https://www.authelia.com
sources:
- https://github.com/authelia/chartrepo/tree/master/charts/authelia
- https://www.github.com/authelia/authelia
dependencies: []
dependencies:
- name: postgresql
version: ~15.1.4
repository: https://charts.bitnami.com/bitnami
condition: storage.postgres.deploy
- name: mariadb
version: ~17.0.1
repository: https://charts.bitnami.com/bitnami
condition: storage.mysql.deploy
maintainers:
- name: james-d-elliott
email: james-d-elliott@users.noreply.github.com
Expand Down
2 changes: 2 additions & 0 deletions charts/authelia/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ values.yaml is based on the *Authelia* configuration. See the
| configMap.session.redis.high_availability.enabledSecret | Forces sentinel password auth using a secret if true | false |
| configMap.storage.local.enabled | Enables the SQLite3 storage provider | false |
| configMap.storage.mysql.enabled | Enables the MySQL storage provider | false |
| configMap.storage.mysql.deploy | Deploy a MariaDB instance | false |
| configMap.storage.postgres.enabled | Enables the PostgreSQL storage provider | true |
| configMap.storage.postgres.deploy | Deploy a PostgreSQL instance | false |
| configMap.notifier.filesystem.enabled | Enables the filesystem notification provider | false |
| configMap.notifier.smtp.enabled | Enables the SMTP notification provider | true |
| configMap.notifier.smtp.enabledSecret | Forces smtp password auth using a secret if true | false |
Expand Down
38 changes: 37 additions & 1 deletion charts/authelia/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1305,6 +1305,7 @@ configMap:
##
mysql:
enabled: false
deploy: false
address: 'tcp://mysql.databases.svc.cluster.local:3306'
timeout: '5 seconds'
database: 'authelia'
Expand Down Expand Up @@ -1350,6 +1351,7 @@ configMap:
##
postgres:
enabled: false
deploy: false
address: 'tcp://postgres.databases.svc.cluster.local:5432'
timeout: '5 seconds'
database: 'authelia'
Expand Down Expand Up @@ -1843,4 +1845,38 @@ persistence:
size: '100Mi'

selector: {}
...

# -- Configure mariadb database subchart under this key.
# This will be deployed when storage.mysql.deploy is set to true
# Currently settings need to be manually copied from here to the storage.mysql section
# For more options see [mariadb chart documentation](https://github.com/bitnami/charts/tree/master/bitnami/mariadb)
mariadb:
architecture: standalone
auth:
database: authelia
username: authelia
password: authelia
rootPassword: authelia
primary:
resources: {}
persistence:
enabled: false
size: 1Gi
# storageClass: ""

# -- Configure postgresql database subchart under this key.
# This will be deployed when storage.postgres.deploy is set to true
# Currently settings need to be manually copied from here to the storage.postgres section
# For more options see [postgresql chart documentation](https://github.com/bitnami/charts/tree/master/bitnami/postgresql)
postgresql:
auth:
postgresPassword: authelia
username: authelia
password: authelia
database: authelia
primary:
persistence:
enabled: false
# storageClass: ""
size: 1Gi
resources: {}

0 comments on commit 7bbbb37

Please sign in to comment.