diff --git a/helm/habitat-operator/templates/clusterrole.yaml b/helm/habitat-operator/templates/clusterrole.yaml index d3daa8d3..e797c789 100644 --- a/helm/habitat-operator/templates/clusterrole.yaml +++ b/helm/habitat-operator/templates/clusterrole.yaml @@ -47,4 +47,8 @@ rules: resources: - namespaces verbs: ["list"] +- apiGroups: [""] + resources: + - events + verbs: [ "create", "patch" ] {{- end }} diff --git a/test/e2e/v1beta1/resources/operator/cluster-role.yml b/test/e2e/v1beta1/resources/operator/cluster-role.yml index cd665f0f..6f9ce030 100644 --- a/test/e2e/v1beta1/resources/operator/cluster-role.yml +++ b/test/e2e/v1beta1/resources/operator/cluster-role.yml @@ -30,8 +30,12 @@ rules: - apiGroups: [""] resources: - pods - verbs: ["get", "list", "watch"] + verbs: ["get", "list", "watch", "deletecollection"] - apiGroups: [""] resources: - namespaces verbs: ["list"] +- apiGroups: [""] + resources: + - events + verbs: [ "create", "patch" ]