diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index 0b40b09..4d7f4fa 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -28,5 +28,10 @@ spec: - "--enable-leader-election" - "--leader-election-id=gitea-operator" image: controller:latest + env: + - name: WATCH_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.annotations['olm.targetNamespaces'] terminationGracePeriodSeconds: 10 serviceAccountName: gitea-operator-sa