Skip to content

Commit

Permalink
Autoscaling: non-operator use of read-only APIs (elastic#69423)
Browse files Browse the repository at this point in the history
The capacity API is generally useful as a debugging tool and should
therefore be available for non-operators too. Furthermore, to help
understand the setup from the Elasticsearch side, reading out the policy
definitions should also be available for non-operators.
  • Loading branch information
henningandersen committed Mar 2, 2021
1 parent aef2567 commit 7a9e527
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public class Constants {

public static final Set<String> NON_OPERATOR_ACTIONS = org.elasticsearch.common.collect.Set.of(
// "cluster:admin/autoscaling/delete_autoscaling_policy",
// "cluster:admin/autoscaling/get_autoscaling_capacity",
// "cluster:admin/autoscaling/get_autoscaling_policy",
"cluster:admin/autoscaling/get_autoscaling_capacity",
"cluster:admin/autoscaling/get_autoscaling_policy",
// "cluster:admin/autoscaling/put_autoscaling_policy",
"cluster:admin/component_template/delete",
"cluster:admin/component_template/get",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ public class OperatorOnlyRegistry {
// Autoscaling does not publish its actions to core, literal strings are needed.
"cluster:admin/autoscaling/put_autoscaling_policy",
"cluster:admin/autoscaling/delete_autoscaling_policy",
"cluster:admin/autoscaling/get_autoscaling_policy",
"cluster:admin/autoscaling/get_autoscaling_capacity",
// Repository analysis actions are not mentioned in core, literal strings are needed.
"cluster:admin/repository/analyze",
"cluster:admin/repository/analyze/blob",
Expand Down

0 comments on commit 7a9e527

Please sign in to comment.