diff --git a/oscar/templates/oscar-rbac.yaml b/oscar/templates/oscar-rbac.yaml index c8aecb2..752b991 100644 --- a/oscar/templates/oscar-rbac.yaml +++ b/oscar/templates/oscar-rbac.yaml @@ -41,6 +41,7 @@ rules: - apps resources: - daemonsets + - deployments verbs: - get - list @@ -70,6 +71,7 @@ rules: - watch - create - delete + {{- if eq (lower .Values.serverlessBackend) "openfaas" }} - apiGroups: - apps @@ -203,6 +205,15 @@ rules: - get - list - watch +- apiGroups: + - metrics.k8s.io + resources: + - nodes + verbs: + - get + - list + - watch + --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding