Skip to content

Commit ac14ce7

Browse files
committed
Resolves issue with leader election
1 parent fb30186 commit ac14ce7

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Group Sync Operator
22
===================
33

4-
[![Build Status](https://github.com/redhat-cop/group-sync-operator/workflows/group-sync-operator/badge.svg?branch=master)](https://github.com/redhat-cop/group-sync-operator/actions?workflow=group-sync-operator)
4+
[![Build Status](https://github.com/redhat-cop/group-sync-operator/workflows/push/badge.svg?branch=master)](https://github.com/redhat-cop/group-sync-operator/actions?workflow=push)
55
[![Docker Repository on Quay](https://quay.io/repository/redhat-cop/group-sync-operator/status "Docker Repository on Quay")](https://quay.io/repository/redhat-cop/group-sync-operator)
66

77
Synchronizes groups from external providers into OpenShift

config/manifests/bases/group-sync-operator.clusterserviceversion.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
categories: Security
88
certified: "false"
99
containerImage: quay.io/redhat-cop/group-sync-operator:latest
10-
createdAt: "2020-12-23T19:02:23Z"
10+
createdAt: "2020-12-31T06:43:02Z"
1111
description: Synchronize groups and users from external providers
1212
operators.operatorframework.io/builder: operator-sdk-v1.2.0
1313
operators.operatorframework.io/project_layout: go.kubebuilder.io/v2

config/rbac/kustomization.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ resources:
66
# Comment the following 4 lines if you want to disable
77
# the auth proxy (https://github.com/brancz/kube-rbac-proxy)
88
# which protects your /metrics endpoint.
9-
- auth_proxy_service.yaml
10-
- auth_proxy_role.yaml
11-
- auth_proxy_role_binding.yaml
12-
- auth_proxy_client_clusterrole.yaml
9+
#- auth_proxy_service.yaml
10+
#- auth_proxy_role.yaml
11+
#- auth_proxy_role_binding.yaml
12+
#- auth_proxy_client_clusterrole.yaml

main.go

+7-6
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,13 @@ func main() {
6969
}
7070

7171
mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
72-
Scheme: scheme,
73-
MetricsBindAddress: metricsAddr,
74-
Port: 9443,
75-
LeaderElection: enableLeaderElection,
76-
LeaderElectionID: "085c249a.redhat.io",
77-
Namespace: watchNamespace,
72+
Scheme: scheme,
73+
MetricsBindAddress: metricsAddr,
74+
Port: 9443,
75+
LeaderElection: enableLeaderElection,
76+
LeaderElectionID: "085c249a.redhat.io",
77+
LeaderElectionResourceLock: "configmaps",
78+
Namespace: watchNamespace,
7879
})
7980
if err != nil {
8081
setupLog.Error(err, "unable to start manager")

0 commit comments

Comments
 (0)