[operator] include permissions for operator-sdk metrics
* fix: include permissions for operator-sdk metrics
Operator sdk needs some extra permissions I wasn't aware of. This is the minimum it needs for it to perform correctly.
* chore: include generated assets
- deploymentconfigs/scale
- deploymentconfigs/finalizers
verbs: [ get, list, create, update, delete, deletecollection, watch, patch ]
+ # For monitoring functions by operator-sdk
+ - apiGroups:
+ - ""
+ resources:
+ - services
+ - services/finalizers
+ verbs:
+ - list
+ - get
+ - watch
+ - create
+ - update
+ - apiGroups:
+ - monitoring.coreos.com
+ resources:
+ - servicemonitors
+ verbs:
+ - get
+ - create
+ - apiGroups:
+ - apps
+ resources:
+ - deployments/finalizers
+ verbs:
+ - update
+ # END For monitoring functions by operator-sdk
- apiGroups:
- ""
- apps.openshift.io
