diff --git a/stable/airflow/Chart.yaml b/stable/airflow/Chart.yaml index e676c49683..ed8b03f5a6 100644 --- a/stable/airflow/Chart.yaml +++ b/stable/airflow/Chart.yaml @@ -1,6 +1,6 @@ description: Airflow is a platform to programmatically author, schedule and monitor workflows name: airflow -version: 0.16.0 +version: 0.17.0 appVersion: 1.10.0 icon: https://airflow.apache.org/_images/pin_large.png home: https://airflow.apache.org/ diff --git a/stable/airflow/README.md b/stable/airflow/README.md index 7e350e0ca3..256c5ff9bd 100644 --- a/stable/airflow/README.md +++ b/stable/airflow/README.md @@ -327,6 +327,7 @@ The following table lists the configurable parameters of the Airflow chart and t | `postgresql.persistance.storageClass` | Persistant class | (undefined) | | `postgresql.persistance.accessMode` | Access mode | `ReadWriteOnce` | | `redis.enabled` | Create a Redis cluster | `true` | +| `redis.redisHost` | Redis Hostname | (undefined) | | `redis.password` | Redis password | `airflow` | | `redis.master.persistence.enabled` | Enable Redis PVC | `false` | | `redis.cluster.enabled` | enable master-slave cluster | `false` | diff --git a/stable/airflow/templates/_helpers.tpl b/stable/airflow/templates/_helpers.tpl index 3bae58afe5..182b307a85 100644 --- a/stable/airflow/templates/_helpers.tpl +++ b/stable/airflow/templates/_helpers.tpl @@ -38,7 +38,7 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this */}} {{- define "airflow.postgresql.fullname" -}} {{- if .Values.postgresql.postgresHost }} - {{- printf "%s" .Values.postgresql.postgresHost -}} + {{- .Values.postgresql.postgresHost -}} {{- else }} {{- $name := default "postgresql" .Values.postgresql.nameOverride -}} {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} @@ -46,12 +46,16 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- end -}} {{/* -Create a default fully qualified redis cluster name. +Create a default fully qualified redis cluster name or use the `redisHost` value if defined We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). */}} {{- define "airflow.redis.fullname" -}} -{{- $name := default "redis" .Values.redis.nameOverride -}} -{{- printf "%s-%s-master" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- if .Values.redis.redisHost }} + {{- .Values.redis.redisHost -}} +{{- else }} + {{- $name := default "redis" .Values.redis.nameOverride -}} + {{- printf "%s-%s-master" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} {{- end -}} {{/* diff --git a/stable/airflow/values.yaml b/stable/airflow/values.yaml index 02a18b8c3f..2dbfff0ecd 100644 --- a/stable/airflow/values.yaml +++ b/stable/airflow/values.yaml @@ -379,11 +379,8 @@ postgresql: ## Set to false if bringing your own PostgreSQL. enabled: true ## - ## If bringing your own PostgreSQL, the full uri to use - ## e.g. postgres://airflow:changeme@my-postgres.com:5432/airflow?sslmode=disable - # uri: - ## - ## PostgreSQL hostname + ## If you are bringing your own PostgreSQL, you should set postgresHost and + ## also probably service.port, postgresUser, postgresPassword, and postgresDatabase ## postgresHost: ## ## PostgreSQL port @@ -421,7 +418,11 @@ redis: ## Set to false if bringing your own redis. enabled: true ## + ## If you are bringing your own redis, you can set the host in redisHost. + ## redisHost: + ## ## Redis password + ## password: airflow ## ## Master configuration