AlfrescoArchive / activiti-cloud-charts

Helm Charts for Activiti cloud Apps
Apache License 2.0
29 stars 28 forks source link

Keycloak persistence #61

Open uclaeaslam opened 5 years ago

uclaeaslam commented 5 years ago

Enabling Keycloak persistence should be added to the documentation. The following was tested on AWS EKS for Activiti Cloud 7.0.0 SR1

helm install --name example \
  --set global.gateway.domain=REPLACEME \
  --set infrastructure.activiti-keycloak.keycloak.keycloak.persistence.deployPostgres=true \
  --set infrastructure.activiti-keycloak.keycloak.keycloak.persistence.dbVendor=postgres \
  --set infrastructure.activiti-keycloak.keycloak.postgresql.persistence.enabled=true \
  --set keycloak.persistence.deployPostgres=true \
  activiti-cloud-charts/activiti-cloud-full-example

Turns out setting keycloak.persistence.deployPostgres is necessary because keycloak itself has a condition on the postgresql dependency, and apparently values used for dependency conditions in requirements.yaml don't pass through subcharts (so infrastructure.activiti-keycloak.keycloak.keycloak.persistence.deployPostgres is not the same as keycloak.persistence.deployPostgres).