Browse Source

Merge pull request #7552 from jpeeler/configmap-leader-election

catalog: use configmap for leader election lock
Michael Gugino 7 years ago
parent
commit
a2266da8a3

+ 4 - 4
roles/openshift_service_catalog/files/kubeservicecatalog_roles_bindings.yml

@@ -182,12 +182,12 @@ objects:
 - apiVersion: authorization.openshift.io/v1
   kind: Role
   metadata:
-    name: endpoint-accessor
+    name: configmap-accessor
   rules:
   - apiGroups:
     - ""
     resources:
-    - endpoints
+    - configmaps
     verbs:
     - list
     - watch
@@ -198,9 +198,9 @@ objects:
 - apiVersion: authorization.openshift.io/v1
   kind: RoleBinding
   metadata:
-    name: endpointer-accessor-binding
+    name: configmap-accessor-binding
   roleRef:
-    name: endpoint-accessor
+    name: configmap-accessor
     namespace: kube-service-catalog
   subjects:
   - kind: ServiceAccount

+ 2 - 0
roles/openshift_service_catalog/templates/controller_manager.j2

@@ -36,6 +36,8 @@ spec:
         - "3"
         - --leader-election-namespace
         - kube-service-catalog
+        - --leader-elect-resource-lock
+        - configmaps
         - --broker-relist-interval
         - "5m"
         - --feature-gates