Skip to content

Commit

Permalink
fix(jackrabbit): default clusterid
Browse files Browse the repository at this point in the history
  • Loading branch information
moabu committed Mar 10, 2022
1 parent b05dee3 commit 9ae84c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pygluu/kubernetes/helm.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@ def analyze_global_values(self):
if self.settings.get("ENABLE_OXTRUST_TEST_MODE_BOOLEAN") == "true":
values_file_parser["config"]["configmap"]["gluuOxtrustApiTestMode"] = True
values_file_parser["global"]["gluuJackrabbitCluster"] = "false"
values_file_parser["jackrabbit"]["clusterId"] = "first"
if self.settings.get("JACKRABBIT_CLUSTER") == "Y":
values_file_parser["jackrabbit"]["clusterId"] = ""
values_file_parser["global"]["gluuJackrabbitCluster"] = "true"
values_file_parser["config"]["configmap"]["gluuJackrabbitAdminId"] = \
self.settings.get("JACKRABBIT_ADMIN_ID")
Expand All @@ -303,7 +305,6 @@ def analyze_global_values(self):
if self.settings.get("PERSISTENCE_BACKEND") == "hybrid" or \
self.settings.get("PERSISTENCE_BACKEND") == "ldap":
values_file_parser["global"]["opendj"]["enabled"] = True
values_file_parser["opendj"]["multiCluster"]["clusterId"] = "first"
# ALPHA-FEATURE: Multi cluster ldap replication
if self.settings.get("GLUU_LDAP_MULTI_CLUSTER") == "Y":
values_file_parser["opendj"]["multiCluster"]["enabled"] = True
Expand Down

0 comments on commit 9ae84c7

Please sign in to comment.