qontract-reconcile 0.10.1rc1051__py3-none-any.whl → 0.10.1rc1052__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {qontract_reconcile-0.10.1rc1051.dist-info → qontract_reconcile-0.10.1rc1052.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc1051.dist-info → qontract_reconcile-0.10.1rc1052.dist-info}/RECORD +7 -7
- reconcile/utils/elasticsearch_exceptions.py +5 -0
- reconcile/utils/terrascript_aws_client.py +19 -0
- {qontract_reconcile-0.10.1rc1051.dist-info → qontract_reconcile-0.10.1rc1052.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc1051.dist-info → qontract_reconcile-0.10.1rc1052.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc1051.dist-info → qontract_reconcile-0.10.1rc1052.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc1051.dist-info → qontract_reconcile-0.10.1rc1052.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: qontract-reconcile
|
3
|
-
Version: 0.10.
|
3
|
+
Version: 0.10.1rc1052
|
4
4
|
Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
|
5
5
|
Home-page: https://github.com/app-sre/qontract-reconcile
|
6
6
|
Author: Red Hat App-SRE Team
|
{qontract_reconcile-0.10.1rc1051.dist-info → qontract_reconcile-0.10.1rc1052.dist-info}/RECORD
RENAMED
@@ -665,7 +665,7 @@ reconcile/utils/differ.py,sha256=kJmUp9ZffFPSUEviaAw3s9c92ErwRJeHaRexGPai7wA,764
|
|
665
665
|
reconcile/utils/disabled_integrations.py,sha256=z1ZGUOKjZ99R-YZ68w1xnLQ_wUccI27NcmdzfK9TARs,1077
|
666
666
|
reconcile/utils/dnsutils.py,sha256=VX4gDQXpiMYVuT0pvNbzzSgfqmsWOM2qtjNQHUyIYF8,370
|
667
667
|
reconcile/utils/early_exit_cache.py,sha256=9zj4ksXCq2qK2oGO0zW9aZ5tkjC5sRCms0ismZOmBv4,8725
|
668
|
-
reconcile/utils/elasticsearch_exceptions.py,sha256=
|
668
|
+
reconcile/utils/elasticsearch_exceptions.py,sha256=zMuP0B8Y3U0u64ZrmAyzw2RWALPs9uS7IzKcF7Prx0U,501
|
669
669
|
reconcile/utils/environ.py,sha256=psk07d2xyjbUzjOCDdNWgavaNolL_t2sq3sn2gFfY9k,507
|
670
670
|
reconcile/utils/exceptions.py,sha256=DwfnWUpVOotpP79RWZ2pycmG6nKCL00RBIeZLYkQPW4,635
|
671
671
|
reconcile/utils/expiration.py,sha256=3JaXH4psksR7z262k7FmdyREjCLqm66OpVMEbcfdWRo,1213
|
@@ -725,7 +725,7 @@ reconcile/utils/state.py,sha256=W0_awkLAPX18hNOF_60o73tkPxDUylqbzYNHfl_sDsk,1638
|
|
725
725
|
reconcile/utils/structs.py,sha256=LcbLEg8WxfRqM6nW7NhcWN0YeqF7SQzxOgntmLs1SgY,352
|
726
726
|
reconcile/utils/template.py,sha256=wTvRU4AnAV_o042tD4Mwls2dwWMuk7MKnde3MaCjaYg,331
|
727
727
|
reconcile/utils/terraform_client.py,sha256=jHTkqqJk1HQh2vZP1FkEeDOiMlO-SKmX8oYuS7lzO_o,34672
|
728
|
-
reconcile/utils/terrascript_aws_client.py,sha256=
|
728
|
+
reconcile/utils/terrascript_aws_client.py,sha256=ctNT-TQSMxNicVIjR1gM2OZWzNc_BG820COSXb_E-CE,278933
|
729
729
|
reconcile/utils/three_way_diff_strategy.py,sha256=oQcHXd9LVhirJfoaOBoHUYuZVGfyL2voKr6KVI34zZE,4833
|
730
730
|
reconcile/utils/throughput.py,sha256=iP4UWAe2LVhDo69mPPmgo9nQ7RxHD6_GS8MZe-aSiuM,344
|
731
731
|
reconcile/utils/vault.py,sha256=9GSNHku8tw5KM2LKpZ1myWYDLtLGUJgpSnD0DxbzeO0,14956
|
@@ -867,8 +867,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
|
|
867
867
|
tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
|
868
868
|
tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
|
869
869
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
870
|
-
qontract_reconcile-0.10.
|
871
|
-
qontract_reconcile-0.10.
|
872
|
-
qontract_reconcile-0.10.
|
873
|
-
qontract_reconcile-0.10.
|
874
|
-
qontract_reconcile-0.10.
|
870
|
+
qontract_reconcile-0.10.1rc1052.dist-info/METADATA,sha256=vApqFMxNENnXiau-v2JHl7G_NMa4KoDW4q9N9CAFcvM,2213
|
871
|
+
qontract_reconcile-0.10.1rc1052.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
872
|
+
qontract_reconcile-0.10.1rc1052.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
|
873
|
+
qontract_reconcile-0.10.1rc1052.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
874
|
+
qontract_reconcile-0.10.1rc1052.dist-info/RECORD,,
|
@@ -11,3 +11,8 @@ class ElasticSearchResourceMissingSubnetIdError(Exception):
|
|
11
11
|
class ElasticSearchResourceZoneAwareSubnetInvalidError(Exception):
|
12
12
|
def __init__(self, msg):
|
13
13
|
super().__init__(str(msg))
|
14
|
+
|
15
|
+
|
16
|
+
class ElasticSearchResourceColdStorageError(Exception):
|
17
|
+
def __init__(self, msg):
|
18
|
+
super().__init__(str(msg))
|
@@ -161,6 +161,7 @@ from reconcile.utils.cloud_resource_best_practice.aws_rds import (
|
|
161
161
|
)
|
162
162
|
from reconcile.utils.disabled_integrations import integration_is_enabled
|
163
163
|
from reconcile.utils.elasticsearch_exceptions import (
|
164
|
+
ElasticSearchResourceColdStorageError,
|
164
165
|
ElasticSearchResourceMissingSubnetIdError,
|
165
166
|
ElasticSearchResourceNameInvalidError,
|
166
167
|
ElasticSearchResourceZoneAwareSubnetInvalidError,
|
@@ -4632,6 +4633,24 @@ class TerrascriptClient: # pylint: disable=too-many-public-methods
|
|
4632
4633
|
)
|
4633
4634
|
cluster_vaules["warm_count"] = cluster_config.get("warm_count", 2)
|
4634
4635
|
|
4636
|
+
cold_storage_options = cluster_config.get("cold_storage_options", {})
|
4637
|
+
if cold_storage_options.get("enabled", False):
|
4638
|
+
if not dedicated_master_enabled:
|
4639
|
+
raise ElasticSearchResourceColdStorageError(
|
4640
|
+
f"[{account}] Cold storage can only be enabled when "
|
4641
|
+
+ "dedicated_master_enabled is set to true for resource"
|
4642
|
+
f" {values['identifier']}"
|
4643
|
+
)
|
4644
|
+
if not warm_enabled:
|
4645
|
+
raise ElasticSearchResourceColdStorageError(
|
4646
|
+
f"[{account}] Cold storage can only be enabled when "
|
4647
|
+
+ "warm_enabled is set to true for resource"
|
4648
|
+
f" {values['identifier']}"
|
4649
|
+
)
|
4650
|
+
cluster_vaules["cold_storage_options"] = {
|
4651
|
+
"enabled": True,
|
4652
|
+
}
|
4653
|
+
|
4635
4654
|
es_values["cluster_config"] = cluster_vaules
|
4636
4655
|
|
4637
4656
|
snapshot_options = values.get("snapshot_options", {})
|
{qontract_reconcile-0.10.1rc1051.dist-info → qontract_reconcile-0.10.1rc1052.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|