diff --git a/chart/stable/searchlight/templates/user-roles.yaml b/chart/stable/searchlight/templates/user-roles.yaml index 4ad3af717..fe18883ae 100644 --- a/chart/stable/searchlight/templates/user-roles.yaml +++ b/chart/stable/searchlight/templates/user-roles.yaml @@ -22,6 +22,25 @@ rules: - patch - update - watch +- apiGroups: + - monitoring.appscode.com + resources: + - incidents + verbs: + - delete + - deletecollection + - get + - list + - patch + - update + - watch +- apiGroups: + - incidents.monitoring.appscode.com + resources: + - acknowledgements + verbs: + - create + - delete --- kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 @@ -36,8 +55,9 @@ rules: - clusteralerts - nodealerts - podalerts + - incidents verbs: - get - list - watch -{{ end }} \ No newline at end of file +{{ end }} diff --git a/hack/deploy/user-roles.yaml b/hack/deploy/user-roles.yaml index 104882e16..82a499a1d 100644 --- a/hack/deploy/user-roles.yaml +++ b/hack/deploy/user-roles.yaml @@ -21,6 +21,25 @@ rules: - patch - update - watch +- apiGroups: + - monitoring.appscode.com + resources: + - incidents + verbs: + - delete + - deletecollection + - get + - list + - patch + - update + - watch +- apiGroups: + - incidents.monitoring.appscode.com + resources: + - acknowledgements + verbs: + - create + - delete --- kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 @@ -35,6 +54,7 @@ rules: - clusteralerts - nodealerts - podalerts + - incidents verbs: - get - list