qontract-reconcile 0.10.1rc1100__py3-none-any.whl → 0.10.1rc1102__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.1rc1100.dist-info → qontract_reconcile-0.10.1rc1102.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc1100.dist-info → qontract_reconcile-0.10.1rc1102.dist-info}/RECORD +9 -9
- reconcile/change_owners/change_log_tracking.py +6 -2
- reconcile/change_owners/changes.py +3 -1
- reconcile/utils/helm.py +3 -0
- reconcile/utils/saasherder/saasherder.py +1 -0
- {qontract_reconcile-0.10.1rc1100.dist-info → qontract_reconcile-0.10.1rc1102.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc1100.dist-info → qontract_reconcile-0.10.1rc1102.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc1100.dist-info → qontract_reconcile-0.10.1rc1102.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc1100.dist-info → qontract_reconcile-0.10.1rc1102.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.1rc1102
|
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.1rc1100.dist-info → qontract_reconcile-0.10.1rc1102.dist-info}/RECORD
RENAMED
@@ -161,10 +161,10 @@ reconcile/aws_version_sync/merge_request_manager/merge_request_manager.py,sha256
|
|
161
161
|
reconcile/change_owners/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
162
162
|
reconcile/change_owners/approver.py,sha256=Z3_11vnK2WNOxjEEXVDh0224-_-qbt9d6mBeVE-7fsc,2259
|
163
163
|
reconcile/change_owners/bundle.py,sha256=h30fU-JmLH5a-rCAovpzTeTkkkgZztsZ5A2raee0YuU,5355
|
164
|
-
reconcile/change_owners/change_log_tracking.py,sha256=
|
164
|
+
reconcile/change_owners/change_log_tracking.py,sha256=qfiUBneSuW6YlhNYN55d9bdg3MKbw-0erPnVvXdQY-s,7591
|
165
165
|
reconcile/change_owners/change_owners.py,sha256=0HRJhDm0oW3uYJFgzynqA1gA0lbhalhSkmWOiQmr-NM,17062
|
166
166
|
reconcile/change_owners/change_types.py,sha256=HEsoBduhcczAXZHwT26mr5sVPxtf8J6tsvjSDDI1ceI,32077
|
167
|
-
reconcile/change_owners/changes.py,sha256=
|
167
|
+
reconcile/change_owners/changes.py,sha256=qdw4ZxOVbTzSATxmLUtJ9HA6BZXwxkHfQljrWv-Q8sU,18244
|
168
168
|
reconcile/change_owners/decision.py,sha256=iUJcIc_N_RqXIAY8D10RZqPMC2OinsHTMcqI6f6uylE,7606
|
169
169
|
reconcile/change_owners/diff.py,sha256=0vyu29xCL24ZhUa7hqBni0NaxoCYRXLwvA-h8V23YQ4,9009
|
170
170
|
reconcile/change_owners/implicit_ownership.py,sha256=6BehZvx4IjrphmOt_LLLk9_02Fl5BY5jd00Wuz_PBZk,4234
|
@@ -683,7 +683,7 @@ reconcile/utils/gitlab_api.py,sha256=C1nsHQKKybsmFdaG9vsItBjJm69ym4VWbqbKfAEf7oY
|
|
683
683
|
reconcile/utils/gpg.py,sha256=EKG7_fdMv8BMlV5yUdPiqoTx-KrzmVSEAl2sLkaKwWI,1123
|
684
684
|
reconcile/utils/gql.py,sha256=C0thIm_k9MBldfqwHzyqtYZk9sIvMdm9IbbnXLGwjD8,14158
|
685
685
|
reconcile/utils/grouping.py,sha256=vr9SFHZ7bqmHYrvYcEZt-Er3-yQYfAAdq5sHLZVmXPY,456
|
686
|
-
reconcile/utils/helm.py,sha256=
|
686
|
+
reconcile/utils/helm.py,sha256=kOPazkwVvyEK_F3uGs7A-EW8V_OFt3w58dzWTTh5AYU,3846
|
687
687
|
reconcile/utils/helpers.py,sha256=k9svgFFZG7H5FvHYY0g5jJyvgvh2UDZxf0Ib221teag,1179
|
688
688
|
reconcile/utils/imap_client.py,sha256=h8YDiCSCvroErhpH_-KGYI7Y2WU2Q2oSpuxDFbOkSbY,1989
|
689
689
|
reconcile/utils/instrumented_wrappers.py,sha256=eVwMoa6FCrYxLv3RML3WpZF9qKVfCTjMxphgVXG03OM,1073
|
@@ -819,7 +819,7 @@ reconcile/utils/runtime/sharding.py,sha256=r0ieUtNed7NvknSw6qQrCkKpVXE1shuHGnfFc
|
|
819
819
|
reconcile/utils/saasherder/__init__.py,sha256=3U8plqMAPRE1kjwZ5YnIsYsggTf4_gS7flRUEuXVBAs,343
|
820
820
|
reconcile/utils/saasherder/interfaces.py,sha256=C2wrw34OXypshVocAsPrVZsSHptgw4g9u7Haa2wulZQ,9087
|
821
821
|
reconcile/utils/saasherder/models.py,sha256=z8ln03zi2a8cu716NcNUDHp8Dv1VcVbhqdWVxCl7x9A,10148
|
822
|
-
reconcile/utils/saasherder/saasherder.py,sha256=
|
822
|
+
reconcile/utils/saasherder/saasherder.py,sha256=5Zzh6Qaa0zE1w4J3E8VMfj1XrPOg0PVT0eYbI6m3Vl0,85926
|
823
823
|
reconcile/utils/terraform/__init__.py,sha256=zNbiyTWo35AT1sFTElL2j_AA0jJ_yWE_bfFn-nD2xik,250
|
824
824
|
reconcile/utils/terraform/config.py,sha256=5UVrd563TMcvi4ooa5JvWVDW1I3bIWg484u79evfV_8,164
|
825
825
|
reconcile/utils/terraform/config_client.py,sha256=gRL1rQ0AqvShei_rcGqC3HDYGskOFKE1nPrJyJE9yno,4676
|
@@ -870,8 +870,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
|
|
870
870
|
tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
|
871
871
|
tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
|
872
872
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
873
|
-
qontract_reconcile-0.10.
|
874
|
-
qontract_reconcile-0.10.
|
875
|
-
qontract_reconcile-0.10.
|
876
|
-
qontract_reconcile-0.10.
|
877
|
-
qontract_reconcile-0.10.
|
873
|
+
qontract_reconcile-0.10.1rc1102.dist-info/METADATA,sha256=N1pR51ZhYmbxSv-gH0Kxln8oAzdUJiY2dLsdtDvTd6s,2213
|
874
|
+
qontract_reconcile-0.10.1rc1102.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
875
|
+
qontract_reconcile-0.10.1rc1102.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
|
876
|
+
qontract_reconcile-0.10.1rc1102.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
877
|
+
qontract_reconcile-0.10.1rc1102.dist-info/RECORD,,
|
@@ -134,8 +134,12 @@ class ChangeLogIntegration(QontractReconcileIntegration[ChangeLogIntegrationPara
|
|
134
134
|
continue
|
135
135
|
diff = QontractServerDiff(**obj)
|
136
136
|
changes = aggregate_resource_changes(
|
137
|
-
aggregate_file_moves(parse_bundle_changes(diff)),
|
138
|
-
{c.path: c.dict() for c in namespaces + jenkins_configs},
|
137
|
+
bundle_changes=aggregate_file_moves(parse_bundle_changes(diff)),
|
138
|
+
content_store={c.path: c.dict() for c in namespaces + jenkins_configs},
|
139
|
+
supported_schemas={
|
140
|
+
"/openshift/namespace-1.yml",
|
141
|
+
"/dependencies/jenkins-config-1.yml",
|
142
|
+
},
|
139
143
|
)
|
140
144
|
for change in changes:
|
141
145
|
logging.debug(f"Processing change {change}")
|
@@ -462,6 +462,7 @@ def parse_bundle_changes(
|
|
462
462
|
def aggregate_resource_changes(
|
463
463
|
bundle_changes: list[BundleFileChange],
|
464
464
|
content_store: dict[str, Any],
|
465
|
+
supported_schemas: set[str],
|
465
466
|
) -> list[BundleFileChange]:
|
466
467
|
resource_changes = [
|
467
468
|
BundleFileChange(
|
@@ -481,7 +482,8 @@ def aggregate_resource_changes(
|
|
481
482
|
)
|
482
483
|
for change in bundle_changes
|
483
484
|
for file_ref in change.old_backrefs | change.new_backrefs
|
484
|
-
if
|
485
|
+
if file_ref.schema in supported_schemas
|
486
|
+
and (file_content := content_store[file_ref.path])
|
485
487
|
]
|
486
488
|
|
487
489
|
return bundle_changes + resource_changes
|
reconcile/utils/helm.py
CHANGED
@@ -110,10 +110,13 @@ def template_all(
|
|
110
110
|
path: str,
|
111
111
|
name: str,
|
112
112
|
values: Mapping[str, Any],
|
113
|
+
ref: str | None,
|
113
114
|
ssl_verify: bool = True,
|
114
115
|
) -> Iterable[Mapping[str, Any]]:
|
115
116
|
with tempfile.TemporaryDirectory() as wd:
|
116
117
|
git.clone(url, wd, depth=1, verify=ssl_verify)
|
118
|
+
if ref:
|
119
|
+
git.checkout(ref, wd)
|
117
120
|
return yaml.safe_load_all(
|
118
121
|
do_template(values=values, path=f"{wd}{path}", name=name)
|
119
122
|
)
|
{qontract_reconcile-0.10.1rc1100.dist-info → qontract_reconcile-0.10.1rc1102.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|