Skip to content

Commit

Permalink
add policy rule for list and delete pods (#1319)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlankfo committed Jan 27, 2022
1 parent 89fb382 commit 6dfbdfd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions production/tanka/grafana-agent/smoke/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ local deployment = k.apps.v1.deployment;
policyRule.withApiGroups(['apps']) +
policyRule.withResources(['deployments/scale']) +
policyRule.withVerbs(['get', 'update']),
policyRule.withApiGroups(['']) +
policyRule.withResources(['pods']) +
policyRule.withVerbs(['list', 'delete']),
]) {
service_account+:
serviceAccount.mixin.metadata.withNamespace(namespace),
Expand Down

0 comments on commit 6dfbdfd

Please sign in to comment.