Skip to content

Conversation

ReSearchITEng
Copy link
Contributor

@ReSearchITEng ReSearchITEng commented Mar 28, 2020

fixes #855 bug, which causes missing selectors in master service, when they are actually required.
This way, this PR aligns operator with Patroni's DSC method: k8s with configMaps, by solving the bug in this "if condition":

if role == Replica {

Because the operator was mainly tested in k8s with the default "endpoints" option, this use case (configMaps) option was hidden till tests were done in OpenShift.
When the kubernetes_use_configmaps parameter is set to true, this PR will also export the required patroni environment variable with the same name: KUBERNETES_USE_CONFIGMAPS=true (as per patroni docs).

ReSearchITEng and others added 4 commits March 31, 2020 20:26
Co-Authored-By: Felix Kunde <felix-kunde@gmx.de>
Co-Authored-By: Felix Kunde <felix-kunde@gmx.de>
Co-Authored-By: Felix Kunde <felix-kunde@gmx.de>
@ReSearchITEng ReSearchITEng requested a review from FxKu March 31, 2020 17:39
@FxKu FxKu added this to the 1.5 milestone Apr 1, 2020
@Jan-M
Copy link
Member

Jan-M commented Apr 2, 2020

👍

1 similar comment
@FxKu
Copy link
Member

FxKu commented Apr 2, 2020

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

master service gets no selectors on OpenShift
3 participants