qontract-reconcile 0.10.1rc909__py3-none-any.whl → 0.10.1rc910__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qontract-reconcile
3
- Version: 0.10.1rc909
3
+ Version: 0.10.1rc910
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
@@ -778,7 +778,7 @@ reconcile/utils/ocm/service_log.py,sha256=RG1f0MMn6joKaRCAm2xveSJCavdOPP1BVo9FXe
778
778
  reconcile/utils/ocm/sre_capability_labels.py,sha256=nqh0imrYczNeeeC7ZNX3pEwuAIVkKLTKZf0YHSPZYpE,1537
779
779
  reconcile/utils/ocm/status_board.py,sha256=fOuyzkykxU9Rr7zhW5VaY0Vkn8Ur-GxvElzb8No-DZg,2283
780
780
  reconcile/utils/ocm/subscriptions.py,sha256=6_blQPcgZYyy19WCFjYiolVk3O1jyNlK1yMqfkwK5sI,2536
781
- reconcile/utils/ocm/syncsets.py,sha256=VMAtF_PLU6Ed-PzNe09N2lwiO6f6r4gFd37gzbbWLsM,954
781
+ reconcile/utils/ocm/syncsets.py,sha256=9IQm1l5BodOVZa2OFbQmow3afmh4nXe5pn-CCJ5LxTI,1169
782
782
  reconcile/utils/ocm/upgrades.py,sha256=VSpW_B3ux7XZjnxV7klW2OjPYW8Wh0rN7snDuiN0q2c,4861
783
783
  reconcile/utils/rosa/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
784
784
  reconcile/utils/rosa/rosa_cli.py,sha256=Wj57nmeXMeBILRXTk27xpQcaU5uQR8JZeEFySP09NFg,11338
@@ -844,8 +844,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
844
844
  tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
845
845
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
846
846
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
847
- qontract_reconcile-0.10.1rc909.dist-info/METADATA,sha256=4xlbiQ_CqGDzQWvfDN7K-JbCPpAyZwGmtccuEI9RAdU,2273
848
- qontract_reconcile-0.10.1rc909.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
849
- qontract_reconcile-0.10.1rc909.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
850
- qontract_reconcile-0.10.1rc909.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
851
- qontract_reconcile-0.10.1rc909.dist-info/RECORD,,
847
+ qontract_reconcile-0.10.1rc910.dist-info/METADATA,sha256=boTuxu6Nk52lbr0BIuxN2q3SC5o3ffs4x7CyScm5GkI,2273
848
+ qontract_reconcile-0.10.1rc910.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
849
+ qontract_reconcile-0.10.1rc910.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
850
+ qontract_reconcile-0.10.1rc910.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
851
+ qontract_reconcile-0.10.1rc910.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
- from collections.abc import Mapping
1
+ from collections.abc import Generator, Mapping
2
2
  from dataclasses import dataclass
3
3
  from typing import Any
4
4
 
@@ -13,6 +13,13 @@ class SyncSet:
13
13
  href: str
14
14
 
15
15
 
16
+ def get_syncsets(
17
+ ocm_client: OCMBaseClient, cluster_id: str
18
+ ) -> Generator[dict[str, Any], None, None]:
19
+ syncset = SyncSet(cluster_id)
20
+ return ocm_client.get_paginated(api_path=syncset.href)
21
+
22
+
16
23
  def get_syncset(ocm_client: OCMBaseClient, cluster_id: str, syncset_id: str) -> Any:
17
24
  syncset = SyncSet(cluster_id)
18
25
  return ocm_client.get(api_path=syncset.href + "/" + syncset_id)