Skip to content

Commit 9961aa0

Browse files
authored
Add redis properties configuration for external redis (#200)
Signed-off-by: hanzala <[email protected]>
1 parent ab1f488 commit 9961aa0

File tree

5 files changed

+42
-3
lines changed

5 files changed

+42
-3
lines changed

charts/airflow/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
description: the community-maintained descendant of the stable/airflow helm chart - focused on ease-of-use
33
name: airflow
4-
version: 8.1.3
4+
version: 8.2.0
55
appVersion: 2.0.1
66
icon: https://airflow.apache.org/_images/pin_large.png
77
home: https://airflow.apache.org/

charts/airflow/README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ kubectl port-forward --namespace $NAMESPACE $POD_NAME 8080:8080
5959

6060
Old Version | New Version | Upgrade Guide
6161
--- | --- | ---
62+
v8.1.X | v8.2.0 | [link](UPGRADE.md#v81x--v820)
6263
v8.0.X | v8.1.0 | [link](UPGRADE.md#v80x--v810)
6364
v7.15.X | v8.0.0 | [link](UPGRADE.md#v715x--v800)
6465
v7.14.X | v7.15.0 | [link](UPGRADE.md#v714x--v7150)
@@ -844,6 +845,28 @@ externalDatabase:
844845
<hr>
845846
</details>
846847

848+
### How to use an external redis?
849+
<details>
850+
<summary>Show More</summary>
851+
<hr>
852+
853+
Example values for an external redis with ssl enabled:
854+
```yaml
855+
redis:
856+
enabled: false
857+
858+
externalRedis:
859+
host: "example.redis.cache.windows.net"
860+
port: 6380
861+
databaseNumber: 15
862+
passwordSecret: "redis-password"
863+
passwordSecretKey: "value"
864+
properties: "?ssl_cert_reqs=CERT_OPTIONAL"
865+
```
866+
867+
<hr>
868+
</details>
869+
847870
## Kubernetes Configs
848871

849872
### How to mount ConfigMaps/Secrets as environment variables?
@@ -1265,6 +1288,7 @@ Parameter | Description | Default
12651288
`externalRedis.databaseNumber` | the database number to use within the the external redis | `1`
12661289
`externalRedis.passwordSecret` | the name of a pre-created secret containing the external redis password | `""`
12671290
`externalRedis.passwordSecretKey` | the key within `externalRedis.passwordSecret` containing the password string | `redis-password`
1291+
`externalDatabase.properties` | the connection properties eg ?ssl_cert_reqs=CERT_OPTIONAL | `""`
12681292

12691293
<hr>
12701294
</details>
@@ -1288,4 +1312,4 @@ Parameter | Description | Default
12881312
</details>
12891313

12901314
<br>
1291-
<br>
1315+
<br>

charts/airflow/UPGRADE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Upgrading Steps
22

3+
## `v8.1.X``v8.2.0`
4+
5+
__The following IMPROVEMENTS have been made:__
6+
7+
* Added an ability to setup external redis connection propertites with the value `externalRedis.properties` for TLS or other advanced parameters
8+
9+
__The following values have been ADDED:__
10+
11+
* `externalRedis.properties`
12+
313
## `v8.0.X``v8.1.0`
414

515
### VALUES - New:

charts/airflow/templates/config/secret-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ stringData:
6767
REDIS_HOST: {{ .Values.externalRedis.host | quote }}
6868
REDIS_PORT: {{ .Values.externalRedis.port | quote }}
6969
REDIS_DBNUM: {{ .Values.externalRedis.databaseNumber | quote }}
70+
REDIS_PROPERTIES: {{.Values.externalRedis.properties | quote }}
7071
{{- end }}
7172

7273
## a bash command which echos the URL encoded value of $REDIS_PASSWORD
@@ -76,7 +77,7 @@ stringData:
7677
7778
## a bash command which echos the Redis connection string
7879
REDIS_CONNECTION_CMD: |-
79-
echo -n "redis://$(eval $REDIS_PASSWORD_CMD)${REDIS_HOST}:${REDIS_PORT}/${REDIS_DBNUM}"
80+
echo -n "redis://$(eval $REDIS_PASSWORD_CMD)${REDIS_HOST}:${REDIS_PORT}/${REDIS_DBNUM}${REDIS_PROPERTIES}"
8081
{{- end }}
8182

8283
## ================

charts/airflow/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,6 +1514,10 @@ externalRedis:
15141514
##
15151515
passwordSecretKey: "redis-password"
15161516

1517+
## the connection properties for external redis, e.g. "?ssl_cert_reqs=CERT_OPTIONAL"
1518+
##
1519+
properties: ""
1520+
15171521
###################################
15181522
# Prometheus Operator - ServiceMonitor
15191523
###################################

0 commit comments

Comments
 (0)