From 7140e9476289b57b815692c3ec2dfd95b5fb4b6b Mon Sep 17 00:00:00 2001 From: Alec Rajeev <13004609+alecrajeev@users.noreply.github.com> Date: Thu, 16 May 2024 04:52:31 -0400 Subject: [PATCH] Fix k8s permissions (#133) * Fix k8s permissions * fix ci * fix ci --- examples/manifests/role.yaml | 1 + jsonnet/lib/thanos-receive-controller.libsonnet | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/manifests/role.yaml b/examples/manifests/role.yaml index 2d8a5599..660fd1f4 100644 --- a/examples/manifests/role.yaml +++ b/examples/manifests/role.yaml @@ -25,6 +25,7 @@ rules: resources: - pods verbs: + - list - get - update - apiGroups: diff --git a/jsonnet/lib/thanos-receive-controller.libsonnet b/jsonnet/lib/thanos-receive-controller.libsonnet index 8f78b5b0..1bdbbdc4 100644 --- a/jsonnet/lib/thanos-receive-controller.libsonnet +++ b/jsonnet/lib/thanos-receive-controller.libsonnet @@ -77,7 +77,7 @@ function(params) { { apiGroups: [''], resources: ['pods'], - verbs: ['get', 'update'], + verbs: ['list', 'get', 'update'], }, { apiGroups: ['apps'],