qontract-reconcile 0.10.2.dev13__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.
- {qontract_reconcile-0.10.2.dev13.dist-info → qontract_reconcile-0.10.2.dev14.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.2.dev13.dist-info → qontract_reconcile-0.10.2.dev14.dist-info}/RECORD +5 -5
- tools/cli_commands/cost_report/view.py +8 -0
- {qontract_reconcile-0.10.2.dev13.dist-info → qontract_reconcile-0.10.2.dev14.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.2.dev13.dist-info → qontract_reconcile-0.10.2.dev14.dist-info}/entry_points.txt +0 -0
{qontract_reconcile-0.10.2.dev13.dist-info → qontract_reconcile-0.10.2.dev14.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: qontract-reconcile
|
3
|
-
Version: 0.10.2.
|
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
|
{qontract_reconcile-0.10.2.dev13.dist-info → qontract_reconcile-0.10.2.dev14.dist-info}/RECORD
RENAMED
@@ -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=
|
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.
|
770
|
-
qontract_reconcile-0.10.2.
|
771
|
-
qontract_reconcile-0.10.2.
|
772
|
-
qontract_reconcile-0.10.2.
|
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,,
|
@@ -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}",
|
{qontract_reconcile-0.10.2.dev13.dist-info → qontract_reconcile-0.10.2.dev14.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|