Skip to content

Commit

Permalink
Make migrations optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sagikazarmark committed Aug 6, 2019
1 parent 17deee2 commit 8bcb702
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cadence/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ However you can decide to apply the same replica count to each service (just lik
See the configuration reference bellow for details.


## Recommended setup




## Configuration

The following table lists the configurable parameters of the chart and their default values.
Expand All @@ -162,8 +167,8 @@ Global options overridable per service are marked with an asterisk.
|-----------------------------------------------|--------------------------------------------------|------------------------------|
| `nameOverride` | Override name of the application | `` |
| `fullnameOverride` | Override full name of the application | `` |
| `server.image.repository` | Server image repository | `banzaicloud/cadence-server` |
| `server.image.tag` | Server image tag | `0.5.9` |
| `server.image.repository` | Server image repository | `ubercadence/server` |
| `server.image.tag` | Server image tag | `0.6.0` |
| `server.image.pullPolicy` | Server image pull policy | `IfNotPresent` |
| `server.replicaCount`* | Server replica count | `1` |
| `server.metrics.prometheus.timerType`* | Prometheus timer type | `histogram` |
Expand Down Expand Up @@ -200,6 +205,8 @@ Global options overridable per service are marked with an asterisk.
| `web.nodeSelector` | Node labels for pod assignment | `{}` |
| `web.tolerations` | Toleration labels for pod assignment | `[]` |
| `web.affinity` | Affinity settings for pod assignment | `{}` |
| `schema.setup` | Create database or keyspace | `true` |
| `schema.update` | Update schema | `true` |
| `cassandra.enabled` | Install Cassandra cluster | `true` |
| `cassandra.config.cluster_size` | Cassandra cluster node number | `1` |
| `mysql.enabled` | Install MySQL | `false` |
Expand Down
4 changes: 4 additions & 0 deletions cadence/templates/server-job.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.schema.setup }}
apiVersion: batch/v1
kind: Job
metadata:
Expand Down Expand Up @@ -146,6 +147,8 @@ spec:
{{- end }}

---
{{- end }}
{{- if .Values.schema.update }}
apiVersion: batch/v1
kind: Job
metadata:
Expand Down Expand Up @@ -250,3 +253,4 @@ spec:
value: {{ include "cadence.persistence.sql.password" (list $ $store) }}
{{- end }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions cadence/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ web:

affinity: {}

schema:
setup: true
update: true

cassandra:
enabled: true
Expand Down

0 comments on commit 8bcb702

Please sign in to comment.