Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating es manifest to allow it to watch all namespaces #74

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions hack/undeploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ done

oc delete -n openshift is elasticsearch-operator || :
oc delete -n openshift bc elasticsearch-operator || :

oc delete namespace ${NAMESPACE} ||:
2 changes: 1 addition & 1 deletion manifests/02-role.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
kind: Role
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: elasticsearch-operator
Expand Down
5 changes: 3 additions & 2 deletions manifests/03-role-bindings.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
---
kind: RoleBinding
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: elasticsearch-operator-rolebinding
subjects:
- kind: ServiceAccount
name: elasticsearch-operator
namespace: openshift-logging
roleRef:
kind: Role
kind: ClusterRole
name: elasticsearch-operator
apiGroup: rbac.authorization.k8s.io
4 changes: 1 addition & 3 deletions manifests/05-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ spec:
name: metrics
env:
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
value: ""
- name: OPERATOR_NAME
value: "elasticsearch-operator"