From 1488fb93f5becc3187ba65d7154914133a7bda0f Mon Sep 17 00:00:00 2001 From: Chirag Jain Date: Wed, 4 Dec 2024 17:31:18 +0530 Subject: [PATCH] Update agent proxy roles to read cluster autoscaler and karpenter (#842) * Update agent proxy roles to read cluster autoscaler and karpenter resoures * Update tfy-agent-proxy-clusterrole-ns.yaml --- charts/tfy-agent/Chart.yaml | 2 +- .../tfy-agent/templates/tfy-agent-proxy-clusterrole-cs.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/tfy-agent/Chart.yaml b/charts/tfy-agent/Chart.yaml index 0beb05a1c..fd2c6882a 100644 --- a/charts/tfy-agent/Chart.yaml +++ b/charts/tfy-agent/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.42 +version: 0.2.43 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/tfy-agent/templates/tfy-agent-proxy-clusterrole-cs.yaml b/charts/tfy-agent/templates/tfy-agent-proxy-clusterrole-cs.yaml index 550598f84..421dcb2f6 100644 --- a/charts/tfy-agent/templates/tfy-agent-proxy-clusterrole-cs.yaml +++ b/charts/tfy-agent/templates/tfy-agent-proxy-clusterrole-cs.yaml @@ -30,6 +30,10 @@ rules: - apiGroups: ["apiextensions.k8s.io"] resources: ["customresourcedefinitions"] verbs: ["list"] + + - apiGroups: ["karpenter.k8s.aws", "karpenter.sh"] + resources: ["ec2nodeclasses", "nodepools"] + verbs: ["list"] {{- else }} - apiGroups: ["*"] resources: ["*"]