From 5404b24913f114fe6328d1ec20c7bb79d91a7a92 Mon Sep 17 00:00:00 2001 From: Dileep Ranganathan Date: Sat, 10 Aug 2019 17:30:33 -0700 Subject: Helm charts for Collectd Operator Helm charts for Collectd Operator Issue-ID: ONAPARC-461 Signed-off-by: Dileep Ranganathan Change-Id: Icd1fc169f9e005030a0d2b48cf9dd76434bf6ba3 Signed-off-by: Dileep Ranganathan --- .../charts/collectd-operator/templates/role.yaml | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 vnfs/DAaaS/deploy/operator/charts/collectd-operator/templates/role.yaml (limited to 'vnfs/DAaaS/deploy/operator/charts/collectd-operator/templates/role.yaml') diff --git a/vnfs/DAaaS/deploy/operator/charts/collectd-operator/templates/role.yaml b/vnfs/DAaaS/deploy/operator/charts/collectd-operator/templates/role.yaml new file mode 100644 index 00000000..73de6aad --- /dev/null +++ b/vnfs/DAaaS/deploy/operator/charts/collectd-operator/templates/role.yaml @@ -0,0 +1,57 @@ +{{- if .Values.enabled }} +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: collectd-operator + labels: + app: {{ template "collectd-operator.name" . }} + chart: {{ template "collectd-operator.chart" . }} + component: clusterrole + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +rules: +- apiGroups: + - "" + resources: + - pods + - services + - endpoints + - persistentvolumeclaims + - events + - configmaps + - secrets + verbs: + - '*' +- apiGroups: + - apps + resources: + - deployments + - daemonsets + - replicasets + - statefulsets + verbs: + - '*' +- apiGroups: + - monitoring.coreos.com + resources: + - servicemonitors + verbs: + - get + - create +- apiGroups: + - apps + resourceNames: + - collectd-operator + resources: + - deployments/finalizers + verbs: + - update +- apiGroups: + - onap.org + resources: + - '*' + - collectdglobals + verbs: + - '*' +{{- end }} \ No newline at end of file -- cgit 1.2.3-korg