Skip to content

Commit

Permalink
Error Prevention: Add notification, shrink, allocation rollup action …
Browse files Browse the repository at this point in the history
…as validate nothing. (#732)

Signed-off-by: Angie Zhang <langelzh@amazon.com>
  • Loading branch information
Angie Zhang committed Apr 14, 2023
1 parent 30d3dfc commit f9d57b1
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ class ActionValidation(
"read_write" -> ValidateReadWrite(settings, clusterService, jvmService).execute(indexName)
"replica_count" -> ValidateReplicaCount(settings, clusterService, jvmService).execute(indexName)
"index_priority" -> ValidateIndexPriority(settings, clusterService, jvmService).execute(indexName)
// No validations for these actions at current stage.
// Reason: https://github.com/opensearch-project/index-management/issues/587
"notification" -> ValidateNothing(settings, clusterService, jvmService).execute(indexName)
"shrink" -> ValidateNothing(settings, clusterService, jvmService).execute(indexName)
"allocation" -> ValidateNothing(settings, clusterService, jvmService).execute(indexName)
"rollup" -> ValidateNothing(settings, clusterService, jvmService).execute(indexName)
else -> {
// temporary call until all actions are mapped
ValidateNothing(settings, clusterService, jvmService).execute(indexName)
Expand Down

0 comments on commit f9d57b1

Please sign in to comment.