Skip to content

Commit 504bee9

Browse files
committed
Smarter location for values
1 parent 8ae9735 commit 504bee9

File tree

7 files changed

+27
-3
lines changed

7 files changed

+27
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ If LDAP authorisation is not required this setting can be skipped.
251251

252252
Two environment variables are required, called ENV and NS (both case senstive). The first describes the selected Git environment for deployment and the second describes the Kubernetes namespace.
253253

254-
The variables for each deployment are contained in the `values.yaml`. The `values.yaml` file for the selected environment must reside in a directory under `charts/values/<ENV>` such as `charts/values/dev/values.yaml` or `charts/values/production/values.yaml`. Each **\<ENV\>** directory will be a different deployment. The `examples` directory contains an examples `values.yaml` file, plus there are examples under the `charts/values` directory so the reader can see the structure.
254+
The variables for each deployment are contained in the `values.yaml`. The `values.yaml` file for the selected environment must reside in a directory under `values/<ENV>` such as `values/dev/values.yaml` or `values/production/values.yaml`. Each **\<ENV\>** directory will be a different deployment. The `examples` directory contains an examples `values.yaml` file, plus there are examples under the `values` directory so the reader can see the structure.
255255

256256
The following table describes the values required in the relevant `values.yaml`:
257257

helmfile.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ releases:
77
namespace: {{ requiredEnv "NS" }}
88
chart: ./charts
99
values:
10-
- ./charts/values/{{ requiredEnv "ENV" }}/values.yaml
10+
- ./values/{{ requiredEnv "ENV" }}/values.yaml

charts/values/blockstore/values.yaml renamed to values/blockstore/values.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ storage:
4848
storageClass: logClass
4949

5050
tls:
51-
enabled: true
51+
enabled: false
5252
caConfigMap: custom-ca
5353

5454
extAccess:
@@ -60,3 +60,15 @@ kmip:
6060
enabled: false
6161
host: kmip-svc.mongodb.svc.cluster.local
6262
port: 5696
63+
64+
65+
additionalUsers:
66+
- username: blockstore0-om-user
67+
passwdSecret: om-user
68+
roles:
69+
- db: admin
70+
role: "clusterMonitor"
71+
- db: admin
72+
role: "readWriteAnyDatabase"
73+
- db: admin
74+
role: "userAdminAnyDatabase"
File renamed without changes.

charts/values/oplog/values.yaml renamed to values/oplog/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,15 @@ kmip:
5959
enabled: false
6060
host: kmip-svc.mongodb.svc.cluster.local
6161
port: 5696
62+
63+
64+
additionalUsers:
65+
- username: oplog0-om-user
66+
passwdSecret: om-user
67+
roles:
68+
- db: admin
69+
role: "clusterMonitor"
70+
- db: admin
71+
role: "readWriteAnyDatabase"
72+
- db: admin
73+
role: "userAdminAnyDatabase"
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)