Improve infrastructure role definitions (#208)

Enhance definitions of infrastructure roles by allowing membership in multiple roles, role options and per-role configuration to be specified in the infrastructure role configmap, which must have the same name as the infrastructure role secret. See manifests/infrastructure-roles-configmap.yaml for the examples and updated README for the description of different types of database roles supposed by the operator and their purposes.

Change the logic of merging infrastructure roles with the manifest roles when they have the same name, to return the infrastructure role unchanged instead of merging. Previously, we used to propagate flags from the manifest role to the resulting infrastructure one, as there were no way to define flags for the infrastructure role; however, this is not the case anymore.

Code review and tests by @erthalion
This commit is contained in:
Oleksii Kliukin
2018-04-04 17:21:36 +02:00
committed by GitHub
parent d264be9faa
commit 26db91c53e
10 changed files with 261 additions and 51 deletions
Generated
+4 -4
View File
@@ -1,8 +1,8 @@
hash: bb2d336f3efb57376916e47b585ad55611b5023b79044ced59c762ea35427f19
updated: 2017-10-10T10:40:56.894070487+02:00
hash: aa008e00a8cf34fa59a081dd67644319f9d5d077bf4de81aa4a25a2d5b8781a1
updated: 2018-01-15T15:00:53.231516+01:00
imports:
- name: github.com/aws/aws-sdk-go
version: 760741802ad40f49ae9fc4a69ef6706d2527d62e
version: 0cebc639926eb91b0192dae4b28bc808417e764c
subpackages:
- aws
- aws/awserr
@@ -104,7 +104,7 @@ imports:
- name: github.com/PuerkitoBio/urlesc
version: 5bd2802263f21d8788851d5305584c82a5c75d7e
- name: github.com/Sirupsen/logrus
version: f006c2ac4710855cf0f916dd6b77acf6b048dc6e
version: d682213848ed68c0a260ca37d6dd5ace8423f5ba
- name: github.com/spf13/pflag
version: 9ff6c6923cfffbcd502984b8e0c80539a94968b7
- name: github.com/ugorji/go