qontract-reconcile 0.10.1rc710__py3-none-any.whl → 0.10.1rc711__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.1rc710
3
+ Version: 0.10.1rc711
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
@@ -746,7 +746,7 @@ tools/app_interface_metrics_exporter.py,sha256=zkwkxdAUAxjdc-pzx2_oJXG25fo0Fnyd5
746
746
  tools/app_interface_reporter.py,sha256=upA-J-n-HXHKVDINRuMR7vTt-iJvQORKUVi9D3leQto,17738
747
747
  tools/glitchtip_access_reporter.py,sha256=oPBnk_YoDuljU3v0FaChzOwwnk4vap1xEE67QEjzdqs,2948
748
748
  tools/glitchtip_access_revalidation.py,sha256=8kbBJk04mkq28kWoRDDkfCGIF3GRg3pJrFAh1sW0dbk,2821
749
- tools/qontract_cli.py,sha256=v2kmMkmtM2Rep0nJ2pKHTGnFOx7R2yKgD8_AdRD8tT4,113417
749
+ tools/qontract_cli.py,sha256=blfKR_QxxnqxBWyX_x5V5cXEydnmM3v9Iy5gAIFrCIc,114530
750
750
  tools/sd_app_sre_alert_report.py,sha256=e9vAdyenUz2f5c8-z-5WY0wv-SJ9aePKDH2r4IwB6pc,5063
751
751
  tools/template_validation.py,sha256=-U-lTGeLaci8yWPEblCJeev2DOlY1jM9QOOh-O1zts8,3376
752
752
  tools/cli_commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -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.1rc710.dist-info/METADATA,sha256=vTg4hBYIAZQpJjjtLFoFZ8NJTlr0QSW2vZuxSUecHKU,2382
768
- qontract_reconcile-0.10.1rc710.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
769
- qontract_reconcile-0.10.1rc710.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
770
- qontract_reconcile-0.10.1rc710.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
771
- qontract_reconcile-0.10.1rc710.dist-info/RECORD,,
767
+ qontract_reconcile-0.10.1rc711.dist-info/METADATA,sha256=C66Bft6HzT9sQVAcNyckeGBHPW2gAhwMv7dGVxGcF_Y,2382
768
+ qontract_reconcile-0.10.1rc711.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
769
+ qontract_reconcile-0.10.1rc711.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
770
+ qontract_reconcile-0.10.1rc711.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
771
+ qontract_reconcile-0.10.1rc711.dist-info/RECORD,,
tools/qontract_cli.py CHANGED
@@ -2567,6 +2567,42 @@ def cost_report(ctx):
2567
2567
  print(command.execute())
2568
2568
 
2569
2569
 
2570
+ @get.command()
2571
+ @click.pass_context
2572
+ def osd_component_versions(ctx):
2573
+ osd_environments = [
2574
+ e["name"] for e in queries.get_environments() if e["product"]["name"] == "OSDv4"
2575
+ ]
2576
+ data = []
2577
+ saas_files = get_saas_files()
2578
+ for sf in saas_files:
2579
+ for rt in sf.resource_templates:
2580
+ for t in rt.targets:
2581
+ if t.namespace.environment.name not in osd_environments:
2582
+ continue
2583
+ item = {
2584
+ "environment": t.namespace.environment.name,
2585
+ "namespace": t.namespace.name,
2586
+ "cluster": t.namespace.cluster.name,
2587
+ "app": sf.app.name,
2588
+ "saas_file": sf.name,
2589
+ "resource_template": rt.name,
2590
+ "ref": f"[{t.ref}]({rt.url}/blob/{t.ref}{rt.path})",
2591
+ }
2592
+ data.append(item)
2593
+
2594
+ columns = [
2595
+ "environment",
2596
+ "namespace",
2597
+ "cluster",
2598
+ "app",
2599
+ "saas_file",
2600
+ "resource_template",
2601
+ "ref",
2602
+ ]
2603
+ print_output(ctx.obj["options"], data, columns)
2604
+
2605
+
2570
2606
  @root.group(name="set")
2571
2607
  @output
2572
2608
  @click.pass_context