qontract-reconcile 0.10.1rc198__py3-none-any.whl → 0.10.1rc199__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.1rc198.dist-info → qontract_reconcile-0.10.1rc199.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc198.dist-info → qontract_reconcile-0.10.1rc199.dist-info}/RECORD +6 -6
- reconcile/utils/promotion_state.py +8 -13
- {qontract_reconcile-0.10.1rc198.dist-info → qontract_reconcile-0.10.1rc199.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc198.dist-info → qontract_reconcile-0.10.1rc199.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc198.dist-info → qontract_reconcile-0.10.1rc199.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc198.dist-info → qontract_reconcile-0.10.1rc199.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.1rc199
|
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.1rc198.dist-info → qontract_reconcile-0.10.1rc199.dist-info}/RECORD
RENAMED
@@ -530,7 +530,7 @@ reconcile/utils/output.py,sha256=htcMXMe0y2dNnwu8MW8x0JZ5YBaEJRy5w4tR8yLF0OU,173
|
|
530
530
|
reconcile/utils/pagerduty_api.py,sha256=ckZZMn_ri7mUFsmMb8Lejuw5Lf_0-OWv8MbOzPc2zkQ,7567
|
531
531
|
reconcile/utils/parse_dhms_duration.py,sha256=ZJGlB43MjhgckgO3OF_nacwTiKVRpxb5Yv7m-PnaQLk,1616
|
532
532
|
reconcile/utils/password_validator.py,sha256=XwuWg-8CPlcuG7dl_oQ1G1h2gSVSnfMym_VkuprpWVg,2183
|
533
|
-
reconcile/utils/promotion_state.py,sha256=
|
533
|
+
reconcile/utils/promotion_state.py,sha256=nnoQIwg89Oil37WBY0KrdBbq7znHKyZWLoN91xedjJc,3740
|
534
534
|
reconcile/utils/promtool.py,sha256=IYNCjj5xDAEdxv6Z0pLdrIcybDfHHtWE9Z6f4LSPcG4,2791
|
535
535
|
reconcile/utils/quay_api.py,sha256=EuOegpb-7ntEjkKLFwM2Oo4Nw7SyFtmyl3sQ9aXMtrM,8152
|
536
536
|
reconcile/utils/raw_github_api.py,sha256=ZHC-SZuAyRe1zaMoOU7Krt1-zecDxENd9c_NzQYqK9g,2968
|
@@ -612,8 +612,8 @@ tools/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
612
612
|
tools/test/test_qontract_cli.py,sha256=awwTHEc2DWlykuqGIYM0WOBoSL0KRnOraCLk3C7izis,1401
|
613
613
|
tools/test/test_sd_app_sre_alert_report.py,sha256=JeLhgzpKCPgLvptwg_4ZvJHLVWKNG1T5845HXTkMBxA,1826
|
614
614
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
615
|
-
qontract_reconcile-0.10.
|
616
|
-
qontract_reconcile-0.10.
|
617
|
-
qontract_reconcile-0.10.
|
618
|
-
qontract_reconcile-0.10.
|
619
|
-
qontract_reconcile-0.10.
|
615
|
+
qontract_reconcile-0.10.1rc199.dist-info/METADATA,sha256=LpCVban2xudrlx6MYnsN5BqsQDySsC9njyXLe6mP7vM,2320
|
616
|
+
qontract_reconcile-0.10.1rc199.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
617
|
+
qontract_reconcile-0.10.1rc199.dist-info/entry_points.txt,sha256=Af70EWPJxsTiCNF6gA-pWdw1A0Heqn-PZF-oBc5NmiU,302
|
618
|
+
qontract_reconcile-0.10.1rc199.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
619
|
+
qontract_reconcile-0.10.1rc199.dist-info/RECORD,,
|
@@ -81,6 +81,13 @@ class PromotionState:
|
|
81
81
|
# Lets reduce unecessary calls to S3
|
82
82
|
return None
|
83
83
|
|
84
|
+
path_v2 = f"promotions_v2/{channel}/{target_uid}/{sha}"
|
85
|
+
try:
|
86
|
+
data = self._state.get(path_v2)
|
87
|
+
return PromotionData(**data)
|
88
|
+
except KeyError:
|
89
|
+
pass
|
90
|
+
|
84
91
|
# BACKWARDS-COMPAT BLOCK
|
85
92
|
# Keep for backwards-compatibility with v1 promotions
|
86
93
|
# We wait a couple of months to be sure all pipelines have
|
@@ -90,25 +97,13 @@ class PromotionState:
|
|
90
97
|
try:
|
91
98
|
data = self._state.get(path_v1)
|
92
99
|
return PromotionData(**data)
|
93
|
-
except KeyError:
|
94
|
-
pass
|
95
|
-
# / BACKWARDS-COMPAT BLOCK
|
96
|
-
|
97
|
-
path_v2 = f"promotions_v2/{channel}/{target_uid}/{sha}"
|
98
|
-
try:
|
99
|
-
data = self._state.get(path_v2)
|
100
|
-
return PromotionData(**data)
|
101
100
|
except KeyError:
|
102
101
|
return None
|
102
|
+
# / BACKWARDS-COMPAT BLOCK
|
103
103
|
|
104
104
|
def publish_promotion_data(
|
105
105
|
self, sha: str, channel: str, target_uid: str, data: PromotionData
|
106
106
|
) -> None:
|
107
|
-
# TODO: this will be deprecated once we fully moved to promotions_v2
|
108
|
-
state_key = f"promotions/{channel}/{sha}"
|
109
|
-
self._state.add(state_key, data.dict(), force=True)
|
110
|
-
logging.info("Uploaded %s to %s", data, state_key)
|
111
|
-
|
112
107
|
state_key_v2 = f"promotions_v2/{channel}/{target_uid}/{sha}"
|
113
108
|
self._state.add(state_key_v2, data.dict(), force=True)
|
114
109
|
logging.info("Uploaded %s to %s", data, state_key_v2)
|
File without changes
|
File without changes
|
{qontract_reconcile-0.10.1rc198.dist-info → qontract_reconcile-0.10.1rc199.dist-info}/top_level.txt
RENAMED
File without changes
|