Skip to content

Commit

Permalink
add code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed Jun 28, 2023
1 parent ef4e3da commit 1c817e7
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const configSchema = schema.object({
enabled: schema.conditional(
schema.contextRef('serverless'),
true,
// cloud_data_migration is disabled in serverless; refer to the serverless.yml file as the source of truth
// We take this approach in order to have a central place (serverless.yml) to view disabled plugins across Kibana
schema.boolean({ defaultValue: true }),
schema.never()
),
Expand Down
2 changes: 2 additions & 0 deletions x-pack/plugins/cross_cluster_replication/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ const schemaLatest = schema.object(
enabled: schema.conditional(
schema.contextRef('serverless'),
true,
// CCR is disabled in serverless; refer to the serverless.yml file as the source of truth
// We take this approach in order to have a central place (serverless.yml) to view disabled plugins across Kibana
schema.boolean({ defaultValue: true }),
schema.never()
),
Expand Down
2 changes: 2 additions & 0 deletions x-pack/plugins/index_lifecycle_management/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ const schemaLatest = schema.object(
enabled: schema.conditional(
schema.contextRef('serverless'),
true,
// ILM is disabled in serverless; refer to the serverless.yml file as the source of truth
// We take this approach in order to have a central place (serverless.yml) to view disabled plugins across Kibana
schema.boolean({ defaultValue: true }),
schema.never()
),
Expand Down
2 changes: 2 additions & 0 deletions x-pack/plugins/license_management/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ const schemaLatest = schema.object(
enabled: schema.conditional(
schema.contextRef('serverless'),
true,
// License Management is disabled in serverless; refer to the serverless.yml file as the source of truth
// We take this approach in order to have a central place (serverless.yml) to view disabled plugins across Kibana
schema.boolean({ defaultValue: true }),
schema.never()
),
Expand Down
2 changes: 2 additions & 0 deletions x-pack/plugins/remote_clusters/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ const schemaLatest = schema.object(
enabled: schema.conditional(
schema.contextRef('serverless'),
true,
// Remote Clusters is disabled in serverless; refer to the serverless.yml file as the source of truth
// We take this approach in order to have a central place (serverless.yml) to view disabled plugins across Kibana
schema.boolean({ defaultValue: true }),
schema.never()
),
Expand Down
2 changes: 2 additions & 0 deletions x-pack/plugins/rollup/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ const schemaLatest = schema.object(
enabled: schema.conditional(
schema.contextRef('serverless'),
true,
// Rollups is disabled in serverless; refer to the serverless.yml file as the source of truth
// We take this approach in order to have a central place (serverless.yml) to view disabled plugins across Kibana
schema.boolean({ defaultValue: true }),
schema.never()
),
Expand Down
2 changes: 2 additions & 0 deletions x-pack/plugins/snapshot_restore/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ const schemaLatest = schema.object(
enabled: schema.conditional(
schema.contextRef('serverless'),
true,
// Snapshot & Restore is disabled in serverless; refer to the serverless.yml file as the source of truth
// We take this approach in order to have a central place (serverless.yml) to view disabled plugins across Kibana
schema.boolean({ defaultValue: true }),
schema.never()
),
Expand Down
2 changes: 2 additions & 0 deletions x-pack/plugins/upgrade_assistant/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const configSchema = schema.object({
enabled: schema.conditional(
schema.contextRef('serverless'),
true,
// Upgrade Assistant is disabled in serverless; refer to the serverless.yml file as the source of truth
// We take this approach in order to have a central place (serverless.yml) to view disabled plugins across Kibana
schema.boolean({ defaultValue: true }),
schema.never()
),
Expand Down

0 comments on commit 1c817e7

Please sign in to comment.