Allow configuration of replica service through spec
This change adds the ReplicaService field to the spec that gives users the same configuration options as other services (primary and pgbouncer).
Checklist:
- [ ] Have you added an explanation of what your changes do and why you'd like them to be included?
- [ ] Have you updated or added documentation for the change, as applicable?
- [ ] Have you tested your changes on all related environments with successful results, as applicable?
- [ ] Have you added automated tests?
Type of Changes:
- [x] New feature
- [ ] Bug fix
- [ ] Documentation
- [ ] Testing enhancement
- [ ] Other
What is the current behavior (link to any open issues here)?
Currently, the replica service defaults to a ServiceType of ClusterIP without the ability to change the type.
What is the new behavior (if this is a feature change)?
With this change, users can change the replica service ServiceType using the spec.ReplicaService field.
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Other Information:
We check that the service type is configured correctly using both kuttl and go tests. In the future, I would like to see more kuttl test steps added that check connection to the different service types. This type of testing would require environment-specific details and configurations (thinking load balancer).