qontract-reconcile 0.10.2.dev12__py3-none-any.whl → 0.10.2.dev14__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.4
2
2
  Name: qontract-reconcile
3
- Version: 0.10.2.dev12
3
+ Version: 0.10.2.dev14
4
4
  Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
5
5
  Project-URL: homepage, https://github.com/app-sre/qontract-reconcile
6
6
  Project-URL: repository, https://github.com/app-sre/qontract-reconcile
@@ -722,7 +722,7 @@ reconcile/utils/runtime/sharding.py,sha256=r0ieUtNed7NvknSw6qQrCkKpVXE1shuHGnfFc
722
722
  reconcile/utils/saasherder/__init__.py,sha256=3U8plqMAPRE1kjwZ5YnIsYsggTf4_gS7flRUEuXVBAs,343
723
723
  reconcile/utils/saasherder/interfaces.py,sha256=C2wrw34OXypshVocAsPrVZsSHptgw4g9u7Haa2wulZQ,9087
724
724
  reconcile/utils/saasherder/models.py,sha256=z8ln03zi2a8cu716NcNUDHp8Dv1VcVbhqdWVxCl7x9A,10148
725
- reconcile/utils/saasherder/saasherder.py,sha256=120A33jOQefZfYUpeDzaeNR4-Twe5V5bsBSe0DoOCSo,86115
725
+ reconcile/utils/saasherder/saasherder.py,sha256=qOIqCPCV0AcoiKu1t1yfhJHQxzygPA6CktZ8NCmdx5E,86186
726
726
  reconcile/utils/terraform/__init__.py,sha256=zNbiyTWo35AT1sFTElL2j_AA0jJ_yWE_bfFn-nD2xik,250
727
727
  reconcile/utils/terraform/config.py,sha256=5UVrd563TMcvi4ooa5JvWVDW1I3bIWg484u79evfV_8,164
728
728
  reconcile/utils/terraform/config_client.py,sha256=gRL1rQ0AqvShei_rcGqC3HDYGskOFKE1nPrJyJE9yno,4676
@@ -755,7 +755,7 @@ tools/cli_commands/cost_report/openshift.py,sha256=cV1k3BIY_XcSSgiATPwVNDWnIUF6m
755
755
  tools/cli_commands/cost_report/openshift_cost_optimization.py,sha256=2mmfOVQWQzu3SSWDZdvoC5NC_GhV-OqDZqlaB7m59KU,6753
756
756
  tools/cli_commands/cost_report/response.py,sha256=l5fVNMg8zzoNWm8LquYJsWM3VqxABBG8KT_qN0L3P6c,2689
757
757
  tools/cli_commands/cost_report/util.py,sha256=lKSWjjUfDzMfSSTbFqc4Ln8JfzlWiW8kR2i51VJbEnc,2497
758
- tools/cli_commands/cost_report/view.py,sha256=2uNO_fWIUydEL2kQXV959crRkHqzjp9c1OrefXNiJ5s,14033
758
+ tools/cli_commands/cost_report/view.py,sha256=WlCbJ01kJLyADHQgYZW4he8wKGvIKjjh23nzBKJzTuw,14193
759
759
  tools/saas_metrics_exporter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
760
760
  tools/saas_metrics_exporter/main.py,sha256=piocx6meMdJxoxeNz52gQGUjt5n7Fma4kgqYamszPrM,3180
761
761
  tools/saas_metrics_exporter/commit_distance/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -766,7 +766,7 @@ tools/saas_promotion_state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
766
766
  tools/saas_promotion_state/saas_promotion_state.py,sha256=5LJ9rygZ304vxfsIuRfuxueoYRb72EZNKKITEcJ4Mtk,3908
767
767
  tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
768
768
  tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y,894
769
- qontract_reconcile-0.10.2.dev12.dist-info/METADATA,sha256=sppoHRsRgQprrh1l3piarq4tIw_UScdBX1hgO3O8n3A,24665
770
- qontract_reconcile-0.10.2.dev12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
771
- qontract_reconcile-0.10.2.dev12.dist-info/entry_points.txt,sha256=JniHZPadNOILPyfSl0LF2YSp3Db7K2_W2CN7i9f3Gos,540
772
- qontract_reconcile-0.10.2.dev12.dist-info/RECORD,,
769
+ qontract_reconcile-0.10.2.dev14.dist-info/METADATA,sha256=zoeT63fXp-3NKJs27gX4SeY9--e9kofOwiLhXfhAhzA,24665
770
+ qontract_reconcile-0.10.2.dev14.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
771
+ qontract_reconcile-0.10.2.dev14.dist-info/entry_points.txt,sha256=JniHZPadNOILPyfSl0LF2YSp3Db7K2_W2CN7i9f3Gos,540
772
+ qontract_reconcile-0.10.2.dev14.dist-info/RECORD,,
@@ -1023,6 +1023,8 @@ class SaasHerder: # pylint: disable=too-many-public-methods
1023
1023
  for target in tmpl.targets:
1024
1024
  if not target.promotion:
1025
1025
  continue
1026
+ if target.delete:
1027
+ continue
1026
1028
  for publish in target.promotion.publish or []:
1027
1029
  publisher_uid = target.uid(
1028
1030
  parent_saas_file_name=saas_file.name,
@@ -127,6 +127,10 @@ TOTAL_COST = """\
127
127
  Total Cost: {total}
128
128
  """
129
129
 
130
+ EMPTY_OPTIMIZATION = """\
131
+ ## {app_name}
132
+ """
133
+
130
134
  OPTIMIZATION = """\
131
135
  ## {app_name}
132
136
 
@@ -442,6 +446,10 @@ def render_openshift_cost_report(
442
446
  def render_optimization(
443
447
  report: OptimizationReport,
444
448
  ) -> str:
449
+ if not report.items:
450
+ return EMPTY_OPTIMIZATION.format(
451
+ app_name=report.app_name,
452
+ )
445
453
  items = [
446
454
  ViewOptimizationReportItem(
447
455
  namespace=f"{i.cluster}/{i.project}",