qontract-reconcile 0.10.1rc713__py3-none-any.whl → 0.10.1rc714__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.1rc713
3
+ Version: 0.10.1rc714
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
@@ -729,7 +729,7 @@ reconcile/utils/runtime/sharding.py,sha256=roCdbnBklhTK_g34zbgQYqzpKPaNQ8J6Xd9XL
729
729
  reconcile/utils/saasherder/__init__.py,sha256=J3MBZBFa5YmhqYm08QsjBXz8mFcVOCiOCkyIcw41t7E,343
730
730
  reconcile/utils/saasherder/interfaces.py,sha256=XXY35h8VWQ66z3LBPxaoUAMkIW50264DQiecrzyV6oA,9076
731
731
  reconcile/utils/saasherder/models.py,sha256=1DKXUmiTS_MejUfSpFCeuBLMTgR4ldv2N1tAz8qHAwc,5547
732
- reconcile/utils/saasherder/saasherder.py,sha256=4IQL-r2uo1iejv0krdaPXaW9CnqBKF6t9Skjs2m263I,86170
732
+ reconcile/utils/saasherder/saasherder.py,sha256=yjfOU9CwVSbEIAm99KsmTpeEQBUoucXzcz1odqzNYoo,86734
733
733
  reconcile/utils/terraform/__init__.py,sha256=zNbiyTWo35AT1sFTElL2j_AA0jJ_yWE_bfFn-nD2xik,250
734
734
  reconcile/utils/terraform/config.py,sha256=5UVrd563TMcvi4ooa5JvWVDW1I3bIWg484u79evfV_8,164
735
735
  reconcile/utils/terraform/config_client.py,sha256=py-Ree-QUYD6Hvng6bM40VgSuttteehIKNgwOSoJO1o,4706
@@ -764,8 +764,8 @@ tools/test/test_app_interface_metrics_exporter.py,sha256=SX7qL3D1SIRKFo95FoQztvf
764
764
  tools/test/test_qontract_cli.py,sha256=UEwAW7PA_GIrbqzaLxpkCxbuVjEFLNvnVG-6VyoCGIc,4147
765
765
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
766
766
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
767
- qontract_reconcile-0.10.1rc713.dist-info/METADATA,sha256=eUDlHDf0sCCDR2ANdbmDSLklilUj8fPPT0MiZK2XoJk,2382
768
- qontract_reconcile-0.10.1rc713.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
769
- qontract_reconcile-0.10.1rc713.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
770
- qontract_reconcile-0.10.1rc713.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
771
- qontract_reconcile-0.10.1rc713.dist-info/RECORD,,
767
+ qontract_reconcile-0.10.1rc714.dist-info/METADATA,sha256=CUPtaFqb8JqY-WCO6qonRwfFiq7OMqe5t5NOrfMHAuo,2382
768
+ qontract_reconcile-0.10.1rc714.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
769
+ qontract_reconcile-0.10.1rc714.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
770
+ qontract_reconcile-0.10.1rc714.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
771
+ qontract_reconcile-0.10.1rc714.dist-info/RECORD,,
@@ -329,6 +329,8 @@ class SaasHerder: # pylint: disable=too-many-public-methods
329
329
  )
330
330
  self._validate_target_in_app(saas_file, target)
331
331
 
332
+ self._warn_deployment_and_clowder_overlap(saas_file)
333
+
332
334
  if target.promotion:
333
335
  rt_ref = (
334
336
  saas_file.path,
@@ -626,6 +628,20 @@ class SaasHerder: # pylint: disable=too-many-public-methods
626
628
  f"Please remove promotion_data for channel {prom_data.channel}."
627
629
  )
628
630
 
631
+ @staticmethod
632
+ def _warn_deployment_and_clowder_overlap(
633
+ saas_file: SaasFile,
634
+ ) -> None:
635
+ if (
636
+ "Deployment" in saas_file.managed_resource_types
637
+ and "ClowdApp" in saas_file.managed_resource_types
638
+ ):
639
+ logging.warning(
640
+ f"[{saas_file.name}] "
641
+ "Deployment and Clowdapp resources are used together. "
642
+ "This is not recommended as it may cause unexpected behavior."
643
+ )
644
+
629
645
  @staticmethod
630
646
  def _get_upstream_jobs(
631
647
  jjb: JJB,