Skip to content

Commit

Permalink
Remove unsupported datastream lifecycle types
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia committed Oct 4, 2024
1 parent d15ee53 commit 171acfa
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 76 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

- Removed the ability to skip an individual spec test ([#358](https://github.com/opensearch-project/opensearch-api-specification/pull/358))
- Removed `shape` query ([#531](https://github.com/opensearch-project/opensearch-api-specification/pull/531))
- Removed unsupported DataStream Lifecycle types ([#600](https://github.com/opensearch-project/opensearch-api-specification/pull/600))

### Fixed

Expand Down
2 changes: 0 additions & 2 deletions spec/schemas/cluster._common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,3 @@ components:
type: object
additionalProperties:
$ref: 'indices._common.yaml#/components/schemas/AliasDefinition'
lifecycle:
$ref: 'indices._common.yaml#/components/schemas/DataStreamLifecycleWithRollover'
72 changes: 0 additions & 72 deletions spec/schemas/indices._common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -784,65 +784,6 @@ components:
If `true`, the alias is hidden.
All indices for the alias must have the same `is_hidden` value.
type: boolean
DataStreamLifecycleWithRollover:
type: object
properties:
data_retention:
$ref: '_common.yaml#/components/schemas/Duration'
downsampling:
$ref: '#/components/schemas/DataStreamLifecycleDownsampling'
rollover:
$ref: '#/components/schemas/DataStreamLifecycleRolloverConditions'
DataStreamLifecycleDownsampling:
type: object
properties:
rounds:
description: The list of downsampling rounds to execute as part of this downsampling configuration
type: array
items:
$ref: '#/components/schemas/DownsamplingRound'
required:
- rounds
DownsamplingRound:
type: object
properties:
after:
$ref: '_common.yaml#/components/schemas/Duration'
config:
$ref: '#/components/schemas/DownsampleConfig'
required:
- after
- config
DownsampleConfig:
type: object
properties:
fixed_interval:
$ref: '_common.yaml#/components/schemas/DurationLarge'
required:
- fixed_interval
DataStreamLifecycleRolloverConditions:
type: object
properties:
min_age:
$ref: '_common.yaml#/components/schemas/Duration'
max_age:
type: string
min_docs:
type: number
max_docs:
type: number
min_size:
$ref: '_common.yaml#/components/schemas/HumanReadableByteCount'
max_size:
$ref: '_common.yaml#/components/schemas/HumanReadableByteCount'
min_primary_shard_size:
$ref: '_common.yaml#/components/schemas/HumanReadableByteCount'
max_primary_shard_size:
$ref: '_common.yaml#/components/schemas/HumanReadableByteCount'
min_primary_shard_docs:
type: number
max_primary_shard_docs:
type: number
IndexState:
type: object
properties:
Expand All @@ -858,8 +799,6 @@ components:
$ref: '#/components/schemas/IndexSettings'
data_stream:
$ref: '_common.yaml#/components/schemas/DataStreamName'
lifecycle:
$ref: '#/components/schemas/DataStreamLifecycle'
Alias:
type: object
properties:
Expand All @@ -879,13 +818,6 @@ components:
$ref: '_common.yaml#/components/schemas/Routing'
search_routing:
$ref: '_common.yaml#/components/schemas/Routing'
DataStreamLifecycle:
type: object
properties:
data_retention:
$ref: '_common.yaml#/components/schemas/Duration'
downsampling:
$ref: '#/components/schemas/DataStreamLifecycleDownsampling'
DataStream:
type: object
properties:
Expand Down Expand Up @@ -914,8 +846,6 @@ components:
type: array
items:
$ref: '#/components/schemas/DataStreamIndex'
lifecycle:
$ref: '#/components/schemas/DataStreamLifecycleWithRollover'
name:
$ref: '_common.yaml#/components/schemas/DataStreamName'
replicated:
Expand Down Expand Up @@ -1015,8 +945,6 @@ components:
$ref: '_common.mapping.yaml#/components/schemas/TypeMapping'
settings:
$ref: '#/components/schemas/IndexSettings'
lifecycle:
$ref: '#/components/schemas/DataStreamLifecycleWithRollover'
IndexTemplateDataStreamConfiguration:
type: object
properties:
Expand Down
2 changes: 0 additions & 2 deletions spec/schemas/indices.put_index_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,3 @@ components:
$ref: '_common.mapping.yaml#/components/schemas/TypeMapping'
settings:
$ref: 'indices._common.yaml#/components/schemas/IndexSettings'
lifecycle:
$ref: 'indices._common.yaml#/components/schemas/DataStreamLifecycle'

0 comments on commit 171acfa

Please sign in to comment.