qontract-reconcile 0.10.2.dev200__py3-none-any.whl → 0.10.2.dev202__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.dev200.dist-info → qontract_reconcile-0.10.2.dev202.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.2.dev200.dist-info → qontract_reconcile-0.10.2.dev202.dist-info}/RECORD +6 -6
- reconcile/utils/aws_api.py +4 -2
- reconcile/utils/terrascript_aws_client.py +2 -1
- {qontract_reconcile-0.10.2.dev200.dist-info → qontract_reconcile-0.10.2.dev202.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.2.dev200.dist-info → qontract_reconcile-0.10.2.dev202.dist-info}/entry_points.txt +0 -0
{qontract_reconcile-0.10.2.dev200.dist-info → qontract_reconcile-0.10.2.dev202.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.dev202
|
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.dev200.dist-info → qontract_reconcile-0.10.2.dev202.dist-info}/RECORD
RENAMED
@@ -597,7 +597,7 @@ reconcile/unleash_feature_toggles/integration.py,sha256=nx7BhtzCsTfPbOp60vI5MkNw
|
|
597
597
|
reconcile/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
598
598
|
reconcile/utils/aggregated_list.py,sha256=_9UeaS1TWbJsGIESvXlzzK-omPI2lMMcCsoqc9LBclc,4022
|
599
599
|
reconcile/utils/amtool.py,sha256=Ng5VVNCiPYEK67eDjIwfuuTLs5JsfltCwt6w5UfXbcY,2289
|
600
|
-
reconcile/utils/aws_api.py,sha256=
|
600
|
+
reconcile/utils/aws_api.py,sha256=_Cr3zBPqpk1iTJxfWcbT7-8d3WiJihSA2zHdXX68EI4,80479
|
601
601
|
reconcile/utils/aws_helper.py,sha256=8PvDR17ntAGX3bBzlTIxDuENl2rkK-RECsNYKm2_DZw,2955
|
602
602
|
reconcile/utils/batches.py,sha256=TtEm64a8lWhFuNbUVpFEmXVdU2Q0sTBrP_I0Cjbgh7g,320
|
603
603
|
reconcile/utils/binary.py,sha256=lSIevhilMeoGMePPHD7A-pxe45LVpBT0LksecYbM-EA,2477
|
@@ -670,7 +670,7 @@ reconcile/utils/state.py,sha256=az4tBmZ0EdbFcAGiBVUxs3cr2-BVWsuDQiNTvjjQq8s,1637
|
|
670
670
|
reconcile/utils/structs.py,sha256=LcbLEg8WxfRqM6nW7NhcWN0YeqF7SQzxOgntmLs1SgY,352
|
671
671
|
reconcile/utils/template.py,sha256=wTvRU4AnAV_o042tD4Mwls2dwWMuk7MKnde3MaCjaYg,331
|
672
672
|
reconcile/utils/terraform_client.py,sha256=IDlrNvGEc2i6ElZIL_fzaJEad1nRC3DkP9_VXhJXmU0,37329
|
673
|
-
reconcile/utils/terrascript_aws_client.py,sha256=
|
673
|
+
reconcile/utils/terrascript_aws_client.py,sha256=gyBUJK89FDYEmb0QyPvD4pCgc5zjlQ6yp3PO6nxCJgI,292443
|
674
674
|
reconcile/utils/three_way_diff_strategy.py,sha256=oQcHXd9LVhirJfoaOBoHUYuZVGfyL2voKr6KVI34zZE,4833
|
675
675
|
reconcile/utils/throughput.py,sha256=iP4UWAe2LVhDo69mPPmgo9nQ7RxHD6_GS8MZe-aSiuM,344
|
676
676
|
reconcile/utils/vault.py,sha256=aSA8l9cJlPUHpChFGl27nSY-Mpq9FMjBo7Dcgb1BVfM,15036
|
@@ -809,7 +809,7 @@ tools/saas_promotion_state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
|
|
809
809
|
tools/saas_promotion_state/saas_promotion_state.py,sha256=UfwwRLS5Ya4_Nh1w5n1dvoYtchQvYE9yj1VANt2IKqI,3925
|
810
810
|
tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
|
811
811
|
tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y,894
|
812
|
-
qontract_reconcile-0.10.2.
|
813
|
-
qontract_reconcile-0.10.2.
|
814
|
-
qontract_reconcile-0.10.2.
|
815
|
-
qontract_reconcile-0.10.2.
|
812
|
+
qontract_reconcile-0.10.2.dev202.dist-info/METADATA,sha256=CYYvFFrH_On8hDff-SoAevyuCTPhipq1U_8ZnUL9E-c,24555
|
813
|
+
qontract_reconcile-0.10.2.dev202.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
814
|
+
qontract_reconcile-0.10.2.dev202.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
|
815
|
+
qontract_reconcile-0.10.2.dev202.dist-info/RECORD,,
|
reconcile/utils/aws_api.py
CHANGED
@@ -194,6 +194,9 @@ class AWSApi:
|
|
194
194
|
self.get_vpc_route_tables = lru_cache()(self.get_vpc_route_tables) # type: ignore[method-assign]
|
195
195
|
self.get_vpc_subnets = lru_cache()(self.get_vpc_subnets) # type: ignore[method-assign]
|
196
196
|
self._get_vpc_endpoints = lru_cache()(self._get_vpc_endpoints) # type: ignore[method-assign]
|
197
|
+
self.get_alb_network_interface_ips = lru_cache()( # type: ignore[method-assign]
|
198
|
+
self.get_alb_network_interface_ips
|
199
|
+
)
|
197
200
|
|
198
201
|
if init_users:
|
199
202
|
self.init_users()
|
@@ -1565,9 +1568,8 @@ class AWSApi:
|
|
1565
1568
|
ec2.create_tags(Resources=[resource_id], Tags=[tag_type_def])
|
1566
1569
|
|
1567
1570
|
def get_alb_network_interface_ips(
|
1568
|
-
self,
|
1571
|
+
self, assumed_role_data: tuple[str, str | None, str], service_name: str
|
1569
1572
|
) -> set[str]:
|
1570
|
-
assumed_role_data = self._get_account_assume_data(account)
|
1571
1573
|
ec2_client = self._get_assumed_role_client(
|
1572
1574
|
account_name=assumed_role_data[0],
|
1573
1575
|
assume_role=assumed_role_data[1],
|
@@ -5189,7 +5189,8 @@ class TerrascriptClient: # pylint: disable=too-many-public-methods
|
|
5189
5189
|
with AWSApi(
|
5190
5190
|
1, [account], secret_reader=self.secret_reader, init_users=False
|
5191
5191
|
) as awsapi:
|
5192
|
-
|
5192
|
+
assumed_role_data = awsapi._get_account_assume_data(account)
|
5193
|
+
ips = awsapi.get_alb_network_interface_ips(assumed_role_data, service_name)
|
5193
5194
|
if not ips:
|
5194
5195
|
raise ValueError(
|
5195
5196
|
f"[{account_name}/{identifier}] expected at least one "
|
{qontract_reconcile-0.10.2.dev200.dist-info → qontract_reconcile-0.10.2.dev202.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|