do not create endpoints when use config maps#1760
Conversation
|
I finded one more bug. Operator can't delete configMap with name I think it's because there is no such suffix |
|
I tested this fix and get correct output on cluster delete event |
|
I would expect a replacement ConfigMap to be created in case |
|
@FxKu, the way that you suggest is a bit more complex than my solution:
|
|
@evsasha sorry for the late reply. I've just learned that the operator does not need to create the ConfigMaps, since Patroni does it for you. And deletion code is already in place as you mentioned. So is setting selector for the master service. Then there's only one last thing to do - defining a readinessProbe for the postgres container in the statefulSet template. I think, it makes to add it after the generation of the |
FxKu I don't agree with you at this point. Adding probes is not a goal of this PR. I spent some time for research and didn't get the proper result (i couldn't get it to work). I propose not to make this change in that PR. Moreover, there is a separate task for this: #587 |
|
@evsasha the readinessProbe we need only in case patroniKubernetesUseConfigMaps is true. But, I'm fine doing it in a separate PR. |
|
👍 |
1 similar comment
|
👍 |
This PR disable create endpoins when option
kubernetes_use_configmapsset to true.I did not change RBAC, the operator works correctly with existing rules
and also works without them
Tested on OpenShift 4.6.
Fix #1740, Fix #1758