Skip to content

Commit

Permalink
chore: refactor installation_env variable naming (#28)
Browse files Browse the repository at this point in the history
* chore: refactor installation_env variable naming
* chore: remove unused env var
  • Loading branch information
vishnu-narayanan authored Aug 16, 2021
1 parent 7a95e3e commit a0ff45f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion charts/chatwoot/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ sources:
- http://www.chatwoot.com

# This is the chart version.
version: 0.5.5
version: 0.5.6

# This is the application version.
appVersion: "v1.18.2"
9 changes: 4 additions & 5 deletions charts/chatwoot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ The command removes all the Kubernetes components associated with the chart and
| ----------------------------------- | ------------------------------------------------------------------- | ---------------------------------------------------------- |
| `env.ACTIVE_STORAGE_SERVICE` | Storage service. `local` for disk. `amazon` for s3. | `"local"` |
| `env.ASSET_CDN_HOST` | Set if CDN is used for asset delivery. | `""` |
| `env.CHATWOOT_INSTALLATION_ENV` | Sets chatwoot installation method. | `"helm"` |
| `env.INSTALLATION_ENV` | Sets chatwoot installation method. | `"helm"` |
| `env.ENABLE_ACCOUNT_SIGNUP` | `true` : default option, allows sign ups, `false` : disables all the end points related to sign ups, `api_only`: disables the UI for signup but you can create sign ups via the account apis. | `"false"` |
| `env.FORCE_SSL` | Force all access to the app over SSL, default is set to false. | `"false"` |
| `env.FRONTEND_URL` | Replace with the URL you are planning to use for your app. | `"http://0.0.0.0:3000/"` |
Expand Down Expand Up @@ -91,8 +91,8 @@ The command removes all the Kubernetes components associated with the chart and

### Postgres variables

| Name | Type | Default Value |
| ----------------------------------- | ------------------------------------------------------------------- | ---------------------------------------------------------- |
| Name | Type | Default Value |
| ----------------------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------ |
| `postgresql.enabled` | Set to `false` if using external postgres and modify the below variables. | `true` |
| `env.POSTGRES_DB` | Chatwoot database name | `"chatwoot_production"` |
| `env.POSTGRES_HOST` | Database url. Edit if using external postgres. | `"chatwoot-chatwoot-postgresql"` |
Expand Down Expand Up @@ -123,10 +123,9 @@ The command removes all the Kubernetes components associated with the chart and
| ----------------------------------- | -------------------------------------------------------------------- | ---------------------------------------------------------- |
| `env.S3_BUCKET_NAME` | S3 bucket name | `""` |
| `env.AWS_ACCESS_KEY_ID` | Amazon access key ID | `""` |
| `env.AWS_ENDPOINT_URL` | https://www.chatwoot.com/docs/configuring-s3-bucket-as-cloud-storage | `""` |
| `env.AWS_REGION` | Amazon region | `""` |
| `env.AWS_SECRET_ACCESS_KEY` | Amazon secret key ID | `""` |
| `env.FB_APP_ID` | For facebook channel. https://www.chatwoot.com/docs/facebook-setup | `""` |
| `env.FB_APP_ID` | For facebook channel https://www.chatwoot.com/docs/facebook-setup | `""` |
| `env.FB_APP_SECRET` | For facebook channel | `""` |
| `env.FB_VERIFY_TOKEN` | For facebook channel | `""` |
| `env.SLACK_CLIENT_ID` | For slack integration | `""` |
Expand Down
10 changes: 5 additions & 5 deletions charts/chatwoot/templates/_env_rails.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@
configMapKeyRef:
key: FRONTEND_URL
name: env
- name: INSTALLATION_ENV
valueFrom:
configMapKeyRef:
key: INSTALLATION_ENV
name: env
- name: IOS_APP_ID
valueFrom:
configMapKeyRef:
Expand Down Expand Up @@ -249,10 +254,5 @@
configMapKeyRef:
key: USE_INBOX_AVATAR_FOR_BOT
name: env
- name: CHATWOOT_INSTALLATION_ENV
valueFrom:
configMapKeyRef:
key: CHATWOOT_INSTALLATION_ENV
name: env

{{- end }}
3 changes: 1 addition & 2 deletions charts/chatwoot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,13 @@ env:
AWS_ACCESS_KEY_ID: ""
AWS_REGION: ""
AWS_SECRET_ACCESS_KEY: ""
AWS_ENDPOINT_URL: ""
ENABLE_ACCOUNT_SIGNUP: "false"
FB_APP_ID: ""
FB_APP_SECRET: ""
FB_VERIFY_TOKEN: ""
FORCE_SSL: "false"
FRONTEND_URL: "http://0.0.0.0:3000/"
INSTALLATION_ENV: "helm"
IOS_APP_ID: 6C953F3RX2.com.chatwoot.app
LOG_LEVEL: info
LOG_SIZE: "500"
Expand Down Expand Up @@ -196,4 +196,3 @@ env:
TWITTER_CONSUMER_SECRET: ""
TWITTER_ENVIRONMENT: ""
USE_INBOX_AVATAR_FOR_BOT: "true"
CHATWOOT_INSTALLATION_ENV: "helm"

0 comments on commit a0ff45f

Please sign in to comment.