forked from opensearch-project/opensearch-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
input_manifests_opensearch.py
26 lines (21 loc) · 1.15 KB
/
input_manifests_opensearch.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright OpenSearch Contributors
# SPDX-License-Identifier: Apache-2.0
#
# The OpenSearch Contributors require contributions made to
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.
from typing import List, Type, Union
from manifests_workflow.component_opensearch import ComponentOpenSearch
from manifests_workflow.component_opensearch_dashboards_min import ComponentOpenSearchDashboardsMin
from manifests_workflow.component_opensearch_min import ComponentOpenSearchMin
from manifests_workflow.input_manifests import InputManifests
class InputManifestsOpenSearch(InputManifests):
def __init__(self) -> None:
super().__init__("OpenSearch")
@classmethod
def files(self, name: str = "opensearch") -> List:
return InputManifests.files(name)
def update(self, min_klass: Union[Type[ComponentOpenSearchMin], Type[ComponentOpenSearchDashboardsMin]] =
ComponentOpenSearchMin, component_klass: Type[ComponentOpenSearch] = ComponentOpenSearch,
keep: bool = False) -> None:
super().update(min_klass=ComponentOpenSearchMin, component_klass=ComponentOpenSearch, keep=keep)