qontract-reconcile 0.10.1rc793__py3-none-any.whl → 0.10.1rc794__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.1rc793
3
+ Version: 0.10.1rc794
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
@@ -770,7 +770,7 @@ tools/app_interface_metrics_exporter.py,sha256=zkwkxdAUAxjdc-pzx2_oJXG25fo0Fnyd5
770
770
  tools/app_interface_reporter.py,sha256=upA-J-n-HXHKVDINRuMR7vTt-iJvQORKUVi9D3leQto,17738
771
771
  tools/glitchtip_access_reporter.py,sha256=oPBnk_YoDuljU3v0FaChzOwwnk4vap1xEE67QEjzdqs,2948
772
772
  tools/glitchtip_access_revalidation.py,sha256=8kbBJk04mkq28kWoRDDkfCGIF3GRg3pJrFAh1sW0dbk,2821
773
- tools/qontract_cli.py,sha256=ilm3Ezw86rgFKLBgL-FV0xSRLHaFHfG0CKmYZfDe1VU,116022
773
+ tools/qontract_cli.py,sha256=shVGUSDTqa8KO1H6P6YD4fpygQSzZuGxB-5MdhTtzUs,113982
774
774
  tools/sd_app_sre_alert_report.py,sha256=e9vAdyenUz2f5c8-z-5WY0wv-SJ9aePKDH2r4IwB6pc,5063
775
775
  tools/template_validation.py,sha256=-U-lTGeLaci8yWPEblCJeev2DOlY1jM9QOOh-O1zts8,3376
776
776
  tools/cli_commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -788,8 +788,8 @@ tools/test/test_app_interface_metrics_exporter.py,sha256=SX7qL3D1SIRKFo95FoQztvf
788
788
  tools/test/test_qontract_cli.py,sha256=w2l4BHB09k1d-BGJ1jBUNCqDv7zkqYrMHojQXg-21kQ,4155
789
789
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
790
790
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
791
- qontract_reconcile-0.10.1rc793.dist-info/METADATA,sha256=pa6ro62kS2lKnya9PY8ITjbQy-s8wAgrS-N65BECpL0,2364
792
- qontract_reconcile-0.10.1rc793.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
793
- qontract_reconcile-0.10.1rc793.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
794
- qontract_reconcile-0.10.1rc793.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
795
- qontract_reconcile-0.10.1rc793.dist-info/RECORD,,
791
+ qontract_reconcile-0.10.1rc794.dist-info/METADATA,sha256=jEo-g0j9NJ4J3c66dCDGtIzxKJsGM9NruME_lyySil8,2364
792
+ qontract_reconcile-0.10.1rc794.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
793
+ qontract_reconcile-0.10.1rc794.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
794
+ qontract_reconcile-0.10.1rc794.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
795
+ qontract_reconcile-0.10.1rc794.dist-info/RECORD,,
tools/qontract_cli.py CHANGED
@@ -32,7 +32,6 @@ from rich.console import (
32
32
  )
33
33
  from rich.table import Table
34
34
  from rich.tree import Tree
35
- from sretoolbox.utils import threaded
36
35
 
37
36
  import reconcile.aus.base as aus
38
37
  import reconcile.openshift_base as ob
@@ -1197,69 +1196,6 @@ def clusters_aws_account_ids(ctx):
1197
1196
  print_output(ctx.obj["options"], results, columns)
1198
1197
 
1199
1198
 
1200
- @get.command()
1201
- @click.pass_context
1202
- def terraform_users_credentials(ctx) -> None:
1203
- credentials = []
1204
- state = init_state(integration="account-notifier")
1205
-
1206
- skip_accounts, appsre_pgp_key, _ = tfu.get_reencrypt_settings()
1207
-
1208
- if skip_accounts:
1209
- accounts, working_dirs, _, aws_api = tfu.setup(
1210
- False,
1211
- 1,
1212
- skip_accounts,
1213
- account_name=None,
1214
- appsre_pgp_key=appsre_pgp_key,
1215
- )
1216
-
1217
- tf = Terraform(
1218
- tfu.QONTRACT_INTEGRATION,
1219
- tfu.QONTRACT_INTEGRATION_VERSION,
1220
- tfu.QONTRACT_TF_PREFIX,
1221
- accounts,
1222
- working_dirs,
1223
- 10,
1224
- aws_api,
1225
- init_users=True,
1226
- )
1227
- for account, output in tf.outputs.items():
1228
- if account in skip_accounts:
1229
- user_passwords = tf.format_output(output, tf.OUTPUT_TYPE_PASSWORDS)
1230
- console_urls = tf.format_output(output, tf.OUTPUT_TYPE_CONSOLEURLS)
1231
- for user_name, enc_password in user_passwords.items():
1232
- item = {
1233
- "account": account,
1234
- "console_url": console_urls[account],
1235
- "user_name": user_name,
1236
- "encrypted_password": enc_password,
1237
- }
1238
- credentials.append(item)
1239
-
1240
- secrets = state.ls()
1241
-
1242
- def _get_secret(secret_key: str):
1243
- if secret_key.startswith("/output/"):
1244
- secret_data = state.get(secret_key[1:])
1245
- if secret_data["account"] not in skip_accounts:
1246
- return secret_data
1247
- return None
1248
-
1249
- secret_result = threaded.run(
1250
- _get_secret,
1251
- secrets,
1252
- 10,
1253
- )
1254
-
1255
- for secret in secret_result:
1256
- if secret and secret["account"] not in skip_accounts:
1257
- credentials.append(secret)
1258
-
1259
- columns = ["account", "console_url", "user_name", "encrypted_password"]
1260
- print_output(ctx.obj["options"], credentials, columns)
1261
-
1262
-
1263
1199
  @root.command()
1264
1200
  @click.argument("account_name")
1265
1201
  @click.pass_context