qontract-reconcile 0.10.2.dev65__py3-none-any.whl → 0.10.2.dev66__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.dev65.dist-info → qontract_reconcile-0.10.2.dev66.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.2.dev65.dist-info → qontract_reconcile-0.10.2.dev66.dist-info}/RECORD +5 -5
- tools/qontract_cli.py +32 -15
- {qontract_reconcile-0.10.2.dev65.dist-info → qontract_reconcile-0.10.2.dev66.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.2.dev65.dist-info → qontract_reconcile-0.10.2.dev66.dist-info}/entry_points.txt +0 -0
{qontract_reconcile-0.10.2.dev65.dist-info → qontract_reconcile-0.10.2.dev66.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.dev66
|
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.dev65.dist-info → qontract_reconcile-0.10.2.dev66.dist-info}/RECORD
RENAMED
@@ -750,7 +750,7 @@ tools/app_sre_tekton_access_reporter.py,sha256=o9prLUgQpwO3msRWc2as1xT1y9OB3znkp
|
|
750
750
|
tools/app_sre_tekton_access_revalidation.py,sha256=66nHEaY-bIqxIhpcmwN8AvQZu6ZXenfkg4Fut0pVZRM,2726
|
751
751
|
tools/glitchtip_access_reporter.py,sha256=o01A6b88t3Wie6tj_tJWWVo2J01LxQ_a9giGm4UzEaU,2901
|
752
752
|
tools/glitchtip_access_revalidation.py,sha256=8kbBJk04mkq28kWoRDDkfCGIF3GRg3pJrFAh1sW0dbk,2821
|
753
|
-
tools/qontract_cli.py,sha256=
|
753
|
+
tools/qontract_cli.py,sha256=dmCg4SF286H9xgepCe36noYj3hvQPDNFpZNw6jG_AQ0,152870
|
754
754
|
tools/sd_app_sre_alert_report.py,sha256=jQpJdXVID68bSNtJNOGDh0-ei1CfEUS4Itr4MAaBNFA,5062
|
755
755
|
tools/template_validation.py,sha256=qpKYaTgk0GOPGa2Ct5_5sKdwIHtCAKIBGzsMPuJU5fw,3371
|
756
756
|
tools/cli_commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -777,7 +777,7 @@ tools/saas_promotion_state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
|
|
777
777
|
tools/saas_promotion_state/saas_promotion_state.py,sha256=UfwwRLS5Ya4_Nh1w5n1dvoYtchQvYE9yj1VANt2IKqI,3925
|
778
778
|
tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
|
779
779
|
tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y,894
|
780
|
-
qontract_reconcile-0.10.2.
|
781
|
-
qontract_reconcile-0.10.2.
|
782
|
-
qontract_reconcile-0.10.2.
|
783
|
-
qontract_reconcile-0.10.2.
|
780
|
+
qontract_reconcile-0.10.2.dev66.dist-info/METADATA,sha256=WNn27yZZJD-FxtNtcntxwfwNLSB84rYwJiNuv_YS-Aw,24665
|
781
|
+
qontract_reconcile-0.10.2.dev66.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
782
|
+
qontract_reconcile-0.10.2.dev66.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
|
783
|
+
qontract_reconcile-0.10.2.dev66.dist-info/RECORD,,
|
tools/qontract_cli.py
CHANGED
@@ -4271,6 +4271,29 @@ def get_input(ctx: click.Context) -> None:
|
|
4271
4271
|
print(erv2cli.input_data)
|
4272
4272
|
|
4273
4273
|
|
4274
|
+
def _get_external_resources_credentials(
|
4275
|
+
secret_reader: SecretReader,
|
4276
|
+
provisioner: str,
|
4277
|
+
) -> str:
|
4278
|
+
return secret_reader.read_with_parameters(
|
4279
|
+
path=f"app-sre/external-resources/{provisioner}",
|
4280
|
+
field="credentials",
|
4281
|
+
format=None,
|
4282
|
+
version=None,
|
4283
|
+
)
|
4284
|
+
|
4285
|
+
|
4286
|
+
@external_resources.command()
|
4287
|
+
@click.pass_context
|
4288
|
+
def get_credentials(ctx: click.Context) -> None:
|
4289
|
+
"""Gets credentials file used in external-resources as AWS_SHARED_CREDENTIALS_FILE"""
|
4290
|
+
credentials = _get_external_resources_credentials(
|
4291
|
+
secret_reader=ctx.obj["secret_reader"],
|
4292
|
+
provisioner=ctx.obj["provisioner"],
|
4293
|
+
)
|
4294
|
+
print(credentials)
|
4295
|
+
|
4296
|
+
|
4274
4297
|
@external_resources.command()
|
4275
4298
|
@click.pass_context
|
4276
4299
|
def request_reconciliation(ctx: click.Context) -> None:
|
@@ -4333,11 +4356,9 @@ def migrate(ctx: click.Context, dry_run: bool, skip_build: bool) -> None:
|
|
4333
4356
|
# prepare AWS credentials for CDKTF and local terraform
|
4334
4357
|
credentials_file = tempdir / "credentials"
|
4335
4358
|
credentials_file.write_text(
|
4336
|
-
|
4337
|
-
|
4338
|
-
|
4339
|
-
format=None,
|
4340
|
-
version=None,
|
4359
|
+
_get_external_resources_credentials(
|
4360
|
+
secret_reader=ctx.obj["secret_reader"],
|
4361
|
+
provisioner=ctx.obj["provisioner"],
|
4341
4362
|
)
|
4342
4363
|
)
|
4343
4364
|
os.environ["AWS_SHARED_CREDENTIALS_FILE"] = str(credentials_file)
|
@@ -4415,11 +4436,9 @@ def debug_shell(ctx: click.Context) -> None:
|
|
4415
4436
|
with task(progress, "Preparing environment ..."):
|
4416
4437
|
credentials_file = tempdir / "credentials"
|
4417
4438
|
credentials_file.write_text(
|
4418
|
-
|
4419
|
-
|
4420
|
-
|
4421
|
-
format=None,
|
4422
|
-
version=None,
|
4439
|
+
_get_external_resources_credentials(
|
4440
|
+
secret_reader=ctx.obj["secret_reader"],
|
4441
|
+
provisioner=ctx.obj["provisioner"],
|
4423
4442
|
)
|
4424
4443
|
)
|
4425
4444
|
os.environ["AWS_SHARED_CREDENTIALS_FILE"] = str(credentials_file)
|
@@ -4456,11 +4475,9 @@ def force_unlock(ctx: click.Context, lock_id: str) -> None:
|
|
4456
4475
|
with task(progress, "Preparing environment ..."):
|
4457
4476
|
credentials_file = tempdir / "credentials"
|
4458
4477
|
credentials_file.write_text(
|
4459
|
-
|
4460
|
-
|
4461
|
-
|
4462
|
-
format=None,
|
4463
|
-
version=None,
|
4478
|
+
_get_external_resources_credentials(
|
4479
|
+
secret_reader=ctx.obj["secret_reader"],
|
4480
|
+
provisioner=ctx.obj["provisioner"],
|
4464
4481
|
)
|
4465
4482
|
)
|
4466
4483
|
os.environ["AWS_SHARED_CREDENTIALS_FILE"] = str(credentials_file)
|
{qontract_reconcile-0.10.2.dev65.dist-info → qontract_reconcile-0.10.2.dev66.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|