File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ type: application
1616# This is the chart version. This version number should be incremented each time you make changes
1717# to the chart and its templates, including the app version.
1818# Versions are expected to follow Semantic Versioning (https://semver.org/)
19- version : 0.3.1
19+ version : 0.4.0
2020
2121# This is the version number of the application being deployed. This version number should be
2222# incremented each time you make changes to the application. Versions are not expected to
Original file line number Diff line number Diff line change @@ -19,5 +19,6 @@ Service utilizes the Spotahome Redis Operator for efficient management and orche
1919| ` size ` | Persistent Volume size | ` 1Gi ` |
2020| ` replicas ` | Number of Redis replicas | ` 2 ` |
2121| ` storageClass ` | StorageClass used to store the data | ` "" ` |
22+ | ` authEnabled ` | Enable password generation | ` true ` |
2223
2324
Original file line number Diff line number Diff line change @@ -13,3 +13,10 @@ rules:
1313 - rfrs-{{ .Release.Name }}
1414 - " {{ .Release.Name }}-external-lb"
1515 verbs : ["get", "list", "watch"]
16+ - apiGroups :
17+ - " "
18+ resources :
19+ - secrets
20+ resourceNames :
21+ - " {{ .Release.Name }}-auth"
22+ verbs : ["get", "list", "watch"]
Original file line number Diff line number Diff line change 1+ {{- if .Values.authEnabled }}
2+ {{- $existingPassword := lookup "v1" "Secret" .Release.Namespace (printf "%s-auth" .Release.Name) }}
3+ {{- $password := randAlphaNum 16 | b64enc }}
4+ {{- if $existingPassword }}
5+ {{- $password = index $existingPassword.data "password" }}
6+ {{- else }}
7+ ---
8+ apiVersion : v1
9+ kind : Secret
10+ metadata :
11+ name : {{ .Release.Name }}-auth
12+ data :
13+ password : {{ $password }}
14+ {{- end }}
15+ {{- end }}
16+
17+ ---
18+
119apiVersion : databases.spotahome.com/v1
220kind : RedisFailover
321metadata :
5270 - appendonly no
5371 - save ""
5472 {{- end }}
73+ {{- if .Values.authEnabled }}
74+ auth :
75+ secretPath : {{ .Release.Name }}-auth
76+ {{- end }}
Original file line number Diff line number Diff line change 2121 "type" : " string" ,
2222 "description" : " StorageClass used to store the data" ,
2323 "default" : " "
24+ },
25+ "authEnabled" : {
26+ "type" : " boolean" ,
27+ "description" : " Enable password generation" ,
28+ "default" : true
2429 }
2530 }
2631}
Original file line number Diff line number Diff line change 44# # @param size Persistent Volume size
55# # @param replicas Number of Redis replicas
66# # @param storageClass StorageClass used to store the data
7+ # # @param authEnabled Enable password generation
78# #
89external : false
910size : 1Gi
1011replicas : 2
1112storageClass : " "
13+ authEnabled : true
Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ rabbitmq 0.4.3 HEAD
7676redis 0.1.1 f642698
7777redis 0.2.0 5ca8823
7878redis 0.3.0 c07c4bbd
79- redis 0.3.1 HEAD
79+ redis 0.3.1 b7375f73
80+ redis 0.4.0 HEAD
8081tcp-balancer 0.1.0 f642698
8182tcp-balancer 0.2.0 HEAD
8283tenant 0.1.3 3d1b86c
You can’t perform that action at this time.
0 commit comments