From d284982def7db73b5a7eb82133ff66a79640ca07 Mon Sep 17 00:00:00 2001 From: Mac Browning Date: Fri, 20 Oct 2023 13:33:08 -0700 Subject: [PATCH] Add additional RBAC resources. --- charts/vantage-kubernetes-agent/Chart.yaml | 4 ++-- .../templates/clusterrole.yaml | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/charts/vantage-kubernetes-agent/Chart.yaml b/charts/vantage-kubernetes-agent/Chart.yaml index 753db6a..be90934 100644 --- a/charts/vantage-kubernetes-agent/Chart.yaml +++ b/charts/vantage-kubernetes-agent/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: vantage-kubernetes-agent -description: A Helm chart for provisioning the Vantage Kubernetes agent. +description: Provisions the Vantage Kubernetes agent. type: application -version: 1.0.1 +version: 1.0.2 appVersion: "1.0.1" icon: "https://www.vantage.sh/nav-logo.svg" diff --git a/charts/vantage-kubernetes-agent/templates/clusterrole.yaml b/charts/vantage-kubernetes-agent/templates/clusterrole.yaml index 01267f3..3c55610 100644 --- a/charts/vantage-kubernetes-agent/templates/clusterrole.yaml +++ b/charts/vantage-kubernetes-agent/templates/clusterrole.yaml @@ -12,6 +12,17 @@ rules: - apiGroups: [""] resources: ["nodes/metrics"] verbs: ["get"] -- apiGroups: [""] - resources: ["nodes", "pods"] +- apiGroups: ["", "apps", "batch"] + resources: + - "nodes" + - "pods" + - "namespaces" + - "replicasets" + - "replicationcontrollers" + - "deployments" + - "statefulsets" + - "jobs" + - "cronjobs" + - "persistentvolumes" + - "persistentvolumeclaims" verbs: ["get", "watch", "list"]