Skip to content

Commit

Permalink
Adding watch namespace env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
roller1187 committed Nov 6, 2020
1 parent d375f2e commit 1df735e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1df735e

Please sign in to comment.