qontract-reconcile 0.10.1rc681__py3-none-any.whl → 0.10.1rc683__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.1rc681.dist-info → qontract_reconcile-0.10.1rc683.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc681.dist-info → qontract_reconcile-0.10.1rc683.dist-info}/RECORD +7 -7
- reconcile/cli.py +18 -1
- reconcile/utils/terrascript_aws_client.py +2 -1
- {qontract_reconcile-0.10.1rc681.dist-info → qontract_reconcile-0.10.1rc683.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc681.dist-info → qontract_reconcile-0.10.1rc683.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc681.dist-info → qontract_reconcile-0.10.1rc683.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc681.dist-info → qontract_reconcile-0.10.1rc683.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.1rc683
|
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.1rc681.dist-info → qontract_reconcile-0.10.1rc683.dist-info}/RECORD
RENAMED
@@ -9,7 +9,7 @@ reconcile/aws_iam_password_reset.py,sha256=NwErtrqgBiXr7eGCAHdtGGOx0S7-4JnSc29Ie
|
|
9
9
|
reconcile/aws_support_cases_sos.py,sha256=Jk6_XjDeJSYxgRGqcEAOcynt9qJF2r5HPIPcSKmoBv8,2974
|
10
10
|
reconcile/blackbox_exporter_endpoint_monitoring.py,sha256=W_VJagnsJR1v5oqjlI3RJJE0_nhtJ0m81RS8zWA5u5c,3538
|
11
11
|
reconcile/checkpoint.py,sha256=R2WFXUXLTB4sWMi4GeA4eegsuf_1-Q4vH8M0Toh3Ij4,5036
|
12
|
-
reconcile/cli.py,sha256=
|
12
|
+
reconcile/cli.py,sha256=L4dAF7FdJ5dwcl9jB1umwC6D_neGnMqmqWE7I2Bskpo,93597
|
13
13
|
reconcile/closedbox_endpoint_monitoring_base.py,sha256=SMhkcQqprWvThrIJa3U_3uh5w1h-alleW1QnCJFY4Qw,4909
|
14
14
|
reconcile/cluster_deployment_mapper.py,sha256=2Ah-nu-Mdig0pjuiZl_XLrmVAjYzFjORR3dMlCgkmw0,2352
|
15
15
|
reconcile/dashdotdb_base.py,sha256=a5aPLVxyqPSbjdB0Ty-uliOtxwvEbbEljHJKxdK3-Zk,4813
|
@@ -616,7 +616,7 @@ reconcile/utils/state.py,sha256=zjsprjbOb0WddzmAvh8ACqAt0fcayrX2YPfz7qceRWw,1609
|
|
616
616
|
reconcile/utils/structs.py,sha256=LcbLEg8WxfRqM6nW7NhcWN0YeqF7SQzxOgntmLs1SgY,352
|
617
617
|
reconcile/utils/template.py,sha256=wTvRU4AnAV_o042tD4Mwls2dwWMuk7MKnde3MaCjaYg,331
|
618
618
|
reconcile/utils/terraform_client.py,sha256=mZEKpu6nbfiQd60wRkc8-5sljBTUTOgaAKnF89itMzU,32085
|
619
|
-
reconcile/utils/terrascript_aws_client.py,sha256=
|
619
|
+
reconcile/utils/terrascript_aws_client.py,sha256=E5dm0ngFtsno8Zj55sBpxiwDqb6FC4D9_mEXbyOl6HA,272644
|
620
620
|
reconcile/utils/three_way_diff_strategy.py,sha256=nyqeQsLCoPI6e16k2CF3b9KNgQLU-rPf5RtfdUfVMwE,4468
|
621
621
|
reconcile/utils/throughput.py,sha256=iP4UWAe2LVhDo69mPPmgo9nQ7RxHD6_GS8MZe-aSiuM,344
|
622
622
|
reconcile/utils/unleash.py,sha256=1D56CsZfE3ShDtN3IErE1T2eeIwNmxhK-yYbCotJ99E,3601
|
@@ -723,8 +723,8 @@ tools/test/test_app_interface_metrics_exporter.py,sha256=SX7qL3D1SIRKFo95FoQztvf
|
|
723
723
|
tools/test/test_qontract_cli.py,sha256=OvalpVRfY4pNmpMaWHHYqBjV68b1eGQjX8SCyTAXb1w,3501
|
724
724
|
tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
|
725
725
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
726
|
-
qontract_reconcile-0.10.
|
727
|
-
qontract_reconcile-0.10.
|
728
|
-
qontract_reconcile-0.10.
|
729
|
-
qontract_reconcile-0.10.
|
730
|
-
qontract_reconcile-0.10.
|
726
|
+
qontract_reconcile-0.10.1rc683.dist-info/METADATA,sha256=rjr_3Q9qMSguhgEXAEgT1tA2pOSZWw00JPS9i7a3kdA,2382
|
727
|
+
qontract_reconcile-0.10.1rc683.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
728
|
+
qontract_reconcile-0.10.1rc683.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
|
729
|
+
qontract_reconcile-0.10.1rc683.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
730
|
+
qontract_reconcile-0.10.1rc683.dist-info/RECORD,,
|
reconcile/cli.py
CHANGED
@@ -15,6 +15,7 @@ from typing import (
|
|
15
15
|
|
16
16
|
import click
|
17
17
|
import sentry_sdk
|
18
|
+
from sentry_sdk.integrations.logging import LoggingIntegration
|
18
19
|
|
19
20
|
from reconcile.status import (
|
20
21
|
ExitCodes,
|
@@ -66,7 +67,23 @@ def before_breadcrumb(crumb, hint):
|
|
66
67
|
|
67
68
|
# Enable Sentry
|
68
69
|
if os.getenv("SENTRY_DSN"):
|
69
|
-
|
70
|
+
match os.environ.get("SENTRY_EVENT_LEVEL", "CRITICAL").upper():
|
71
|
+
case "CRITICAL":
|
72
|
+
sentry_event_level = logging.CRITICAL
|
73
|
+
case "ERROR":
|
74
|
+
sentry_event_level = logging.ERROR
|
75
|
+
case _:
|
76
|
+
raise ValueError(
|
77
|
+
"Invalid value for SENTRY_EVENT_LEVEL. Must be CRITICAL or ERROR."
|
78
|
+
)
|
79
|
+
|
80
|
+
sentry_sdk.init(
|
81
|
+
os.environ["SENTRY_DSN"],
|
82
|
+
before_breadcrumb=before_breadcrumb,
|
83
|
+
integrations=[
|
84
|
+
LoggingIntegration(event_level=sentry_event_level),
|
85
|
+
],
|
86
|
+
)
|
70
87
|
|
71
88
|
|
72
89
|
def config_file(function):
|
@@ -457,8 +457,9 @@ class TerrascriptClient: # pylint: disable=too-many-public-methods
|
|
457
457
|
|
458
458
|
self.accounts = {a["name"]: a for a in filtered_accounts}
|
459
459
|
self.uids = {a["name"]: a["uid"] for a in filtered_accounts}
|
460
|
+
# default_regions info is needed in populate_tf_resource_rds, even in disabled accounts
|
460
461
|
self.default_regions = {
|
461
|
-
a["name"]: a["resourcesDefaultRegion"] for a in
|
462
|
+
a["name"]: a["resourcesDefaultRegion"] for a in accounts
|
462
463
|
}
|
463
464
|
self.partitions = {
|
464
465
|
a["name"]: a.get("partition") or "aws" for a in filtered_accounts
|
File without changes
|
File without changes
|
{qontract_reconcile-0.10.1rc681.dist-info → qontract_reconcile-0.10.1rc683.dist-info}/top_level.txt
RENAMED
File without changes
|