qontract-reconcile 0.10.1rc842__py3-none-any.whl → 0.10.1rc843__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.1rc842
3
+ Version: 0.10.1rc843
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
@@ -93,7 +93,7 @@ reconcile/quay_mirror.py,sha256=9NzbNoxl-NdD8CwImcXNG5xTdHmUJxBfeVk5XHH41J8,1488
93
93
  reconcile/quay_mirror_org.py,sha256=Oq-t3kSkgfeSAOUDjLCDRBeEvOIEBacfX38qrX_s0oc,10801
94
94
  reconcile/quay_permissions.py,sha256=9KOutS1w4RFQqkvMSy54VtsKNx56-phzP6yI_rEW-B8,4244
95
95
  reconcile/quay_repos.py,sha256=cuEYG0HUe0ut5yvLdEwOF5-CmccpXQHRb_wDazvDrvQ,6895
96
- reconcile/queries.py,sha256=oubToFx19Dm-5Dx47Xajuwg9F5YcROmxKTrXg1WGjMA,50749
96
+ reconcile/queries.py,sha256=dzg1HlbYYbV-UIpEuHVRpgm65q4B5zkF2EK4qhHWqrI,50839
97
97
  reconcile/query_validator.py,sha256=BAjGrU8_VhzTOv5k0-uz0hY9ziZyconv8VAhgre1Auc,1497
98
98
  reconcile/requests_sender.py,sha256=914iluuF4UVgG3VyxxtnHOu4yf6YKS2fIy6PViSsFTQ,3875
99
99
  reconcile/resource_scraper.py,sha256=vo1N9vLJCYWvXlTwFRIpEuWjx_39ZV9zxJlpoPq4g3U,2330
@@ -806,7 +806,7 @@ tools/app_interface_metrics_exporter.py,sha256=zkwkxdAUAxjdc-pzx2_oJXG25fo0Fnyd5
806
806
  tools/app_interface_reporter.py,sha256=upA-J-n-HXHKVDINRuMR7vTt-iJvQORKUVi9D3leQto,17738
807
807
  tools/glitchtip_access_reporter.py,sha256=oPBnk_YoDuljU3v0FaChzOwwnk4vap1xEE67QEjzdqs,2948
808
808
  tools/glitchtip_access_revalidation.py,sha256=8kbBJk04mkq28kWoRDDkfCGIF3GRg3pJrFAh1sW0dbk,2821
809
- tools/qontract_cli.py,sha256=KRH45kCMg3Zdm8-Wvuau-28BB-SnFMsNEIW_hY_-ZNg,118172
809
+ tools/qontract_cli.py,sha256=gf20IVJqMjaKpMi-zWDZKAMSKPSj6vCoCVXTkqCVin0,118372
810
810
  tools/sd_app_sre_alert_report.py,sha256=e9vAdyenUz2f5c8-z-5WY0wv-SJ9aePKDH2r4IwB6pc,5063
811
811
  tools/template_validation.py,sha256=-U-lTGeLaci8yWPEblCJeev2DOlY1jM9QOOh-O1zts8,3376
812
812
  tools/cli_commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -834,8 +834,8 @@ tools/test/test_app_interface_metrics_exporter.py,sha256=SX7qL3D1SIRKFo95FoQztvf
834
834
  tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jrss,4941
835
835
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
836
836
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
837
- qontract_reconcile-0.10.1rc842.dist-info/METADATA,sha256=82-BUSCe5y3jPW0IEDEwSo_oRbgSyPt0cEMx596ADrc,2275
838
- qontract_reconcile-0.10.1rc842.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
839
- qontract_reconcile-0.10.1rc842.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
840
- qontract_reconcile-0.10.1rc842.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
841
- qontract_reconcile-0.10.1rc842.dist-info/RECORD,,
837
+ qontract_reconcile-0.10.1rc843.dist-info/METADATA,sha256=aRjGJ0OKx0Fu3BXzpGSQyR36xC9slX21_hoJMm5xvig,2275
838
+ qontract_reconcile-0.10.1rc843.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
839
+ qontract_reconcile-0.10.1rc843.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
840
+ qontract_reconcile-0.10.1rc843.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
841
+ qontract_reconcile-0.10.1rc843.dist-info/RECORD,,
reconcile/queries.py CHANGED
@@ -950,6 +950,12 @@ CLUSTERS_QUERY = """
950
950
  version
951
951
  format
952
952
  }
953
+ clusterAdminAutomationToken {
954
+ path
955
+ field
956
+ version
957
+ format
958
+ }
953
959
  clusterAdmin
954
960
  internal
955
961
  disable {
tools/qontract_cli.py CHANGED
@@ -1265,8 +1265,9 @@ def aws_route53_zones(ctx):
1265
1265
 
1266
1266
  @get.command()
1267
1267
  @click.argument("cluster_name")
1268
+ @click.option("--cluster-admin/--no-cluster-admin", default=False)
1268
1269
  @click.pass_context
1269
- def bot_login(ctx, cluster_name):
1270
+ def bot_login(ctx, cluster_name, cluster_admin):
1270
1271
  settings = queries.get_app_interface_settings()
1271
1272
  secret_reader = SecretReader(settings=settings)
1272
1273
  clusters = queries.get_clusters()
@@ -1277,7 +1278,10 @@ def bot_login(ctx, cluster_name):
1277
1278
 
1278
1279
  cluster = clusters[0]
1279
1280
  server = cluster["serverUrl"]
1280
- token = secret_reader.read(cluster["automationToken"])
1281
+ automation_token_name = (
1282
+ "clusterAdminAutomationToken" if cluster_admin else "automationToken"
1283
+ )
1284
+ token = secret_reader.read(cluster[automation_token_name])
1281
1285
  print(f"oc login --server {server} --token {token}")
1282
1286
 
1283
1287