qontract-reconcile 0.9.1rc145__py3-none-any.whl → 0.9.1rc147__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.9.1rc145
3
+ Version: 0.9.1rc147
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
@@ -133,7 +133,7 @@ reconcile/terraform_tgw_attachments.py,sha256=c8aDE6g0i9PmJQOQMq2GhKNeIOu8LGE-fK
133
133
  reconcile/terraform_users.py,sha256=AzDvEQCdLpsXoS3nLbIQRraQvJHa8JmL40lZFv8YXMk,9321
134
134
  reconcile/terraform_vpc_peerings.py,sha256=y0KiAtw1CWU6sZd24rlmWhpevhgQVC3S2nRHC65t7Tc,21020
135
135
  reconcile/unleash_watcher.py,sha256=dqzNYOSAZysasu6tPGt3_kAc9kxho3bQtFgFIWhaAb8,4061
136
- reconcile/vault_replication.py,sha256=71DpJewJJ9Ad-rORTWI_HSloedKLsaisfY5jE_SOsxI,17250
136
+ reconcile/vault_replication.py,sha256=xobxnsOfUcwvdQ-RZ7JH_sZCDh8rpEY7MJ36nkvfFqE,17262
137
137
  reconcile/vpc_peerings_validator.py,sha256=10igLYTQpBMGXO9mTO7sJBzgr4jXQ2hf1OH5r5DKugE,3586
138
138
  reconcile/change_owners/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
139
139
  reconcile/change_owners/approver.py,sha256=Q3aKcxfX6cnYLlxE0NUxhAYzeZmo82MYVmBG8eBGQfk,2264
@@ -408,7 +408,7 @@ reconcile/utils/ldap_client.py,sha256=atreTLA1f7gnG54Ub3JWkToP9tCwAci-q17dqB5XSh
408
408
  reconcile/utils/lean_terraform_client.py,sha256=PJio087h5zUoievA3SppDP_io6ypiS9refaN5Hpm1Dg,1055
409
409
  reconcile/utils/make.py,sha256=QaEwucrzbl8-VHS66Wfdjfo0ubmAcvt_hZGpiGsKU50,231
410
410
  reconcile/utils/metrics.py,sha256=7DO12hEJ7sNOjrTNmA24l5wmAe4MT0WgY-Y2iPhBgXI,2015
411
- reconcile/utils/oc.py,sha256=142wodk2C-z-jwOHMVDbEeSAhcK1TqIo4If6HwoQmDg,67876
411
+ reconcile/utils/oc.py,sha256=cBd9q6sBupVeZ7QvWvKHR533cuhgDf1tfd7UuSWBUKg,67901
412
412
  reconcile/utils/oc_connection_parameters.py,sha256=6ut-o751NVRFZgFYf8--CCWXWaHCVcSPSXioxU8xEMo,8699
413
413
  reconcile/utils/oc_filters.py,sha256=RWn8pC5A7ZZT7C6WPq9bOw5KBNkiAb5puFSr_FpdAf8,1358
414
414
  reconcile/utils/oc_map.py,sha256=qzjLGmZYsDA27RCqInZuhSIll4BXYMX6joCqhGpX1kU,9570
@@ -439,7 +439,7 @@ reconcile/utils/terraform_client.py,sha256=UHDyYE-gS9Ae8cHj8hMJ1Uxed-GVhlx9kcuxQ
439
439
  reconcile/utils/terrascript_aws_client.py,sha256=Z47VgfPlOQLL9TrahOYpshXWcHDIl4Yv1jsTxto3fwM,248323
440
440
  reconcile/utils/throughput.py,sha256=iP4UWAe2LVhDo69mPPmgo9nQ7RxHD6_GS8MZe-aSiuM,344
441
441
  reconcile/utils/unleash.py,sha256=xY8fXxJApZhYnhJHmqNAK1YPNWf6larzDtk0VuNvn08,2875
442
- reconcile/utils/vault.py,sha256=7Na29hFPqDvjl6Muv0nLntuOlmERLtSDAkqRYRgmaFg,13631
442
+ reconcile/utils/vault.py,sha256=crB3zEKbGqrfvQIohc8oWlC-YmUxC9je5tJJnblNezw,13745
443
443
  reconcile/utils/vaultsecretref.py,sha256=d12zVc0anCLryjeH_mZ4cDF2lVf8P3soEsxPEhfADAw,974
444
444
  reconcile/utils/glitchtip/__init__.py,sha256=FT6iBhGqoe7KExFdbgL8AYUb64iW_4snF5__Dcl7yt0,258
445
445
  reconcile/utils/glitchtip/client.py,sha256=xra8V8R6p0NGISD5PWbl4uSIecoIm7xBqVTILkfRSh8,8454
@@ -482,8 +482,8 @@ tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y
482
482
  tools/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
483
483
  tools/test/test_qontract_cli.py,sha256=awwTHEc2DWlykuqGIYM0WOBoSL0KRnOraCLk3C7izis,1401
484
484
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
485
- qontract_reconcile-0.9.1rc145.dist-info/METADATA,sha256=dfoIsspBNz75ECRUWF3SCPKB6Kld-i8Dukuv2M_ZF78,2259
486
- qontract_reconcile-0.9.1rc145.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
487
- qontract_reconcile-0.9.1rc145.dist-info/entry_points.txt,sha256=3BPvsRryM1C4S_mb5kXmP5AVv-wJBzVCrOJyv6qUmc0,195
488
- qontract_reconcile-0.9.1rc145.dist-info/top_level.txt,sha256=j0CHPIc8TsVRB50wOz_jhxjjaRyCJB3NOQeXhuHS67c,34
489
- qontract_reconcile-0.9.1rc145.dist-info/RECORD,,
485
+ qontract_reconcile-0.9.1rc147.dist-info/METADATA,sha256=dgXfAlUj5bqwBXlPP8EVkpkGrcxcx8Vdkgw3jiJ--4s,2259
486
+ qontract_reconcile-0.9.1rc147.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
487
+ qontract_reconcile-0.9.1rc147.dist-info/entry_points.txt,sha256=3BPvsRryM1C4S_mb5kXmP5AVv-wJBzVCrOJyv6qUmc0,195
488
+ qontract_reconcile-0.9.1rc147.dist-info/top_level.txt,sha256=j0CHPIc8TsVRB50wOz_jhxjjaRyCJB3NOQeXhuHS67c,34
489
+ qontract_reconcile-0.9.1rc147.dist-info/RECORD,,
reconcile/utils/oc.py CHANGED
@@ -753,7 +753,7 @@ class OCDeprecated: # pylint: disable=too-many-public-methods
753
753
 
754
754
  def job_logs(self, namespace, name, follow, output):
755
755
  self.wait_for_job_running(namespace, name)
756
- cmd = ["logs", "-n", namespace, f"job/{name}"]
756
+ cmd = ["logs", "--all-containers=true", "-n", namespace, f"job/{name}"]
757
757
  if follow:
758
758
  cmd.append("-f")
759
759
  # pylint: disable=consider-using-with
reconcile/utils/vault.py CHANGED
@@ -118,6 +118,12 @@ class _VaultClient:
118
118
  t = threading.Thread(target=self._auto_refresh_client_auth, daemon=True)
119
119
  t.start()
120
120
 
121
+ def __enter__(self):
122
+ return self
123
+
124
+ def __exit__(self, *exc):
125
+ self._client.adapter.close()
126
+
121
127
  def _auto_refresh_client_auth(self):
122
128
  """
123
129
  Thread that periodically refreshes the vault token
@@ -436,20 +436,18 @@ def run(dry_run: bool) -> None:
436
436
  # Private class _VaultClient is used because the public class is
437
437
  # defined as a singleton, and we need to create multiple instances
438
438
  # as the source vault is different than the replication.
439
- source_vault = _VaultClient(
439
+ with _VaultClient(
440
440
  server=source_creds["server"],
441
441
  role_id=source_creds["role_id"],
442
442
  secret_id=source_creds["secret_id"],
443
- )
444
- dest_vault = _VaultClient(
443
+ ) as source_vault, _VaultClient(
445
444
  server=dest_creds["server"],
446
445
  role_id=dest_creds["role_id"],
447
446
  secret_id=dest_creds["secret_id"],
448
- )
449
-
450
- replicate_paths(
451
- dry_run=dry_run,
452
- source_vault=source_vault,
453
- dest_vault=dest_vault,
454
- replications=replication,
455
- )
447
+ ) as dest_vault:
448
+ replicate_paths(
449
+ dry_run=dry_run,
450
+ source_vault=source_vault,
451
+ dest_vault=dest_vault,
452
+ replications=replication,
453
+ )