Skip to content

Commit 14fbf8c

Browse files
committed
update kibana schema to allow migrate: { enabled: false }
1 parent 8a69d28 commit 14fbf8c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

x-pack/plugins/index_lifecycle_management/server/routes/api/policies/register_create_route.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ const setPrioritySchema = schema.maybe(
4040

4141
const unfollowSchema = schema.maybe(schema.object({})); // Unfollow has no options
4242

43+
const migrateSchema = schema.maybe(schema.object({ enabled: schema.literal(false) }));
44+
4345
const allocateNodeSchema = schema.maybe(schema.recordOf(schema.string(), schema.string()));
4446
const allocateSchema = schema.maybe(
4547
schema.object({
@@ -76,6 +78,7 @@ const warmPhaseSchema = schema.maybe(
7678
schema.object({
7779
min_age: minAgeSchema,
7880
actions: schema.object({
81+
migrate: migrateSchema,
7982
set_priority: setPrioritySchema,
8083
unfollow: unfollowSchema,
8184
readonly: schema.maybe(schema.object({})), // Readonly has no options
@@ -94,6 +97,7 @@ const coldPhaseSchema = schema.maybe(
9497
schema.object({
9598
min_age: minAgeSchema,
9699
actions: schema.object({
100+
migrate: migrateSchema,
97101
set_priority: setPrioritySchema,
98102
unfollow: unfollowSchema,
99103
allocate: allocateSchema,
@@ -111,6 +115,7 @@ const frozenPhaseSchema = schema.maybe(
111115
schema.object({
112116
min_age: minAgeSchema,
113117
actions: schema.object({
118+
migrate: migrateSchema,
114119
set_priority: setPrioritySchema,
115120
unfollow: unfollowSchema,
116121
allocate: allocateSchema,

0 commit comments

Comments
 (0)