-
- Downloads
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
Showing
- README.md 94 additions, 0 deletionsREADME.md
- glide.lock 4 additions, 4 deletionsglide.lock
- glide.yaml 1 addition, 0 deletionsglide.yaml
- manifests/infrastructure-roles-configmap.yaml 11 additions, 0 deletionsmanifests/infrastructure-roles-configmap.yaml
- manifests/infrastructure-roles.yaml 5 additions, 1 deletionmanifests/infrastructure-roles.yaml
- pkg/cluster/cluster.go 38 additions, 25 deletionspkg/cluster/cluster.go
- pkg/cluster/cluster_test.go 2 additions, 3 deletionspkg/cluster/cluster_test.go
- pkg/controller/util.go 47 additions, 9 deletionspkg/controller/util.go
- pkg/controller/util_test.go 35 additions, 1 deletionpkg/controller/util_test.go
- pkg/spec/types.go 24 additions, 8 deletionspkg/spec/types.go
Loading
Please sign in to comment