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.2 .0
19+ version : 0.3 .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 1010| ` replicas ` | Persistent Volume size for NATS | ` 2 ` |
1111| ` storageClass ` | StorageClass used to store the data | ` "" ` |
1212
13+ ### Configuration parameters
14+
15+ | Name | Description | Value |
16+ | ----------- | ----------------------- | ----- |
17+ | ` users ` | Users configuration | ` {} ` |
Original file line number Diff line number Diff line change 1818 nats :
1919 fullnameOverride : {{ .Release.Name }}
2020 config :
21+ {{- if .Values.users }}
22+ {{- if gt (len .Values.users) 0 }}
23+ merge :
24+ accounts :
25+ A :
26+ users :
27+ {{- range $username, $userConfig := .Values.users }}
28+ - user : " {{ $username }}"
29+ password : " {{ $userConfig.password }}"
30+ {{- end }}
31+ {{- end }}
32+ {{- end }}
2133 cluster :
2234 enabled : true
2335 replicas : {{ .Values.replicas }}
Original file line number Diff line number Diff line change 22 "title" : " Chart Values" ,
33 "type" : " object" ,
44 "properties" : {
5- "external" : {
6- "type" : " boolean" ,
7- "description" : " Enable external access from outside the cluster" ,
8- "default" : false
5+ "external" : {
6+ "type" : " boolean" ,
7+ "description" : " Enable external access from outside the cluster" ,
8+ "default" : false
9+ },
10+ "replicas" : {
11+ "type" : " number" ,
12+ "description" : " Persistent Volume size for NATS" ,
13+ "default" : 2
14+ },
15+ "storageClass" : {
16+ "type" : " string" ,
17+ "description" : " StorageClass used to store the data" ,
18+ "default" : " "
19+ },
20+ "users" : {
21+ "type" : " object" ,
22+ "description" : " Users configuration" ,
23+ "additionalProperties" : {
24+ "type" : " object" ,
25+ "properties" : {
26+ "password" : {
27+ "type" : " string" ,
28+ "description" : " Password for the user"
29+ }
30+ },
31+ "required" : [" password" ]
932 },
10- "replicas" : {
11- "type" : " number" ,
12- "description" : " Persistent Volume size for NATS" ,
13- "default" : 2
14- },
15- "storageClass" : {
16- "type" : " string" ,
17- "description" : " StorageClass used to store the data" ,
18- "default" : " "
19- }
33+ "default" : {}
34+ }
2035 }
21- }
36+ }
Original file line number Diff line number Diff line change 88external : false
99replicas : 2
1010storageClass : " "
11+ # # @param users [object] Users configuration
12+ # # Example:
13+ # # users:
14+ # # user1:
15+ # # password: strongpassword
16+ # # user2:
17+ # # password: hackme
18+ users : {}
Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ mysql 0.5.0 4b84798
4848mysql 0.5.1 fab5940b
4949mysql 0.5.2 HEAD
5050nats 0.1.0 5ca8823
51- nats 0.2.0 HEAD
51+ nats 0.2.0 c07c4bbd
52+ nats 0.3.0 HEAD
5253postgres 0.1.0 f642698
5354postgres 0.2.0 7cd7de73
5455postgres 0.2.1 4a97e297
Original file line number Diff line number Diff line change 55 persistentVolumeClaimRetentionPolicy :
66 whenDeleted : Delete
77 whenScaled : Delete
8+ config :
9+ cluster :
10+ routeURLs :
11+ k8sClusterDomain : cozy.local
You can’t perform that action at this time.
0 commit comments