qontract-reconcile 0.10.1rc978__py3-none-any.whl → 0.10.1rc980__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.1rc978
3
+ Version: 0.10.1rc980
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
@@ -386,7 +386,7 @@ reconcile/gql_definitions/terraform_repo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5
386
386
  reconcile/gql_definitions/terraform_repo/terraform_repo.py,sha256=_rdq3efy5Q3QFpI-vcs3-wacsXo_1fu1kVix_E83h5Q,3599
387
387
  reconcile/gql_definitions/terraform_resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
388
388
  reconcile/gql_definitions/terraform_resources/database_access_manager.py,sha256=yv0_YC-LmhaKD_gyGG3le1w5BtypBjlsO894-Zgdg4U,4813
389
- reconcile/gql_definitions/terraform_resources/terraform_resources_namespaces.py,sha256=bY53hFt1Ki0oqjP03OX4nT80zdD29YwvnlKW3Df7zs8,42401
389
+ reconcile/gql_definitions/terraform_resources/terraform_resources_namespaces.py,sha256=1PQBvcJjErRaG529kAzMwfw-ShNaM92IQovlwEiYrV8,42491
390
390
  reconcile/gql_definitions/terraform_tgw_attachments/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
391
391
  reconcile/gql_definitions/terraform_tgw_attachments/aws_accounts.py,sha256=FPyPEikpkZ_kvHfXqnkzSUDNmxMMTiUwhI-eLQtuIHM,2616
392
392
  reconcile/gql_definitions/unleash_feature_toggles/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -710,7 +710,7 @@ reconcile/utils/state.py,sha256=a_EO5u7__Pqd0_E3MqzUttJ-0xRtuxcNx5oQi5WIahI,1639
710
710
  reconcile/utils/structs.py,sha256=LcbLEg8WxfRqM6nW7NhcWN0YeqF7SQzxOgntmLs1SgY,352
711
711
  reconcile/utils/template.py,sha256=wTvRU4AnAV_o042tD4Mwls2dwWMuk7MKnde3MaCjaYg,331
712
712
  reconcile/utils/terraform_client.py,sha256=tCDVrfmFCB6lGfGhJt13VRkHxGy7Psw88KIze0r-JLo,31787
713
- reconcile/utils/terrascript_aws_client.py,sha256=qobUuAhZQvnsBWdt6hbsllSVWZWOLlIs5HZ2btirD0s,276571
713
+ reconcile/utils/terrascript_aws_client.py,sha256=6eKwBkyesrARf5j1cAaVV9aCECkPDWTxGX1bIZNofbg,277032
714
714
  reconcile/utils/three_way_diff_strategy.py,sha256=oQcHXd9LVhirJfoaOBoHUYuZVGfyL2voKr6KVI34zZE,4833
715
715
  reconcile/utils/throughput.py,sha256=iP4UWAe2LVhDo69mPPmgo9nQ7RxHD6_GS8MZe-aSiuM,344
716
716
  reconcile/utils/vault.py,sha256=9GSNHku8tw5KM2LKpZ1myWYDLtLGUJgpSnD0DxbzeO0,14956
@@ -851,8 +851,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
851
851
  tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
852
852
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
853
853
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
854
- qontract_reconcile-0.10.1rc978.dist-info/METADATA,sha256=uOUbg3xbF6czgixzBH7noyhEscCDV0Y6SLkyviIjnEE,2262
855
- qontract_reconcile-0.10.1rc978.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
856
- qontract_reconcile-0.10.1rc978.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
857
- qontract_reconcile-0.10.1rc978.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
858
- qontract_reconcile-0.10.1rc978.dist-info/RECORD,,
854
+ qontract_reconcile-0.10.1rc980.dist-info/METADATA,sha256=P-UqVuzizwNTstf7_YiCVv-LPydPyyoGVYV_Bcdl-Oc,2262
855
+ qontract_reconcile-0.10.1rc980.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
856
+ qontract_reconcile-0.10.1rc980.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
857
+ qontract_reconcile-0.10.1rc980.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
858
+ qontract_reconcile-0.10.1rc980.dist-info/RECORD,,
@@ -167,6 +167,7 @@ query TerraformResourcesNamespaces {
167
167
  assume_action
168
168
  inline_policy
169
169
  role_policy
170
+ policies
170
171
  output_resource_name
171
172
  annotations
172
173
  lifecycle {
@@ -645,6 +646,7 @@ class NamespaceTerraformResourceRoleV1(NamespaceTerraformResourceAWSV1):
645
646
  assume_action: Optional[str] = Field(..., alias="assume_action")
646
647
  inline_policy: Optional[str] = Field(..., alias="inline_policy")
647
648
  role_policy: Optional[str] = Field(..., alias="role_policy")
649
+ policies: Optional[list[str]] = Field(..., alias="policies")
648
650
  output_resource_name: Optional[str] = Field(..., alias="output_resource_name")
649
651
  annotations: Optional[str] = Field(..., alias="annotations")
650
652
  lifecycle: Optional[NamespaceTerraformResourceLifecycleV1] = Field(..., alias="lifecycle")
@@ -2650,6 +2650,15 @@ class TerrascriptClient: # pylint: disable=too-many-public-methods
2650
2650
  )
2651
2651
  tf_resources.append(tf_aws_iam_policy_attachment)
2652
2652
 
2653
+ for policy in common_values.get("policies") or []:
2654
+ tf_iam_role_policy_attachment = aws_iam_role_policy_attachment(
2655
+ identifier + "-" + policy,
2656
+ role=role_tf_resource.name,
2657
+ policy_arn=f"arn:{self._get_partition(account)}:iam::aws:policy/{policy}",
2658
+ depends_on=self.get_dependencies([role_tf_resource]),
2659
+ )
2660
+ tf_resources.append(tf_iam_role_policy_attachment)
2661
+
2653
2662
  # output role arn
2654
2663
  output_name = output_prefix + "__role_arn"
2655
2664
  output_value = "${" + role_tf_resource.arn + "}"