qontract-reconcile 0.10.1rc898__py3-none-any.whl → 0.10.1rc899__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.1rc898
3
+ Version: 0.10.1rc899
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
@@ -138,7 +138,7 @@ reconcile/aus/version_gates/ingress_gate_handler.py,sha256=ZCtyggBzzcb0prtdbMpJs
138
138
  reconcile/aus/version_gates/ocp_gate_handler.py,sha256=RW1ppDaCZXVegV9AzzqYXxDUu_Z_7d43Z5h2Pk_piKc,716
139
139
  reconcile/aus/version_gates/sts_version_gate_handler.py,sha256=swwwz0YyvrEBf_InqrRRBCt2QzHYNvvq8jz9aYwElh4,3663
140
140
  reconcile/aws_account_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
141
- reconcile/aws_account_manager/integration.py,sha256=0a52Bdq9yrQ5FQrx9miZ-uW8ndlcHmZ2B3_OrSNIOz8,14991
141
+ reconcile/aws_account_manager/integration.py,sha256=tdIXqHyd0QLZOX_7_jyU7eEil-jYJbAv4I4V1c3KhVk,14981
142
142
  reconcile/aws_account_manager/merge_request_manager.py,sha256=zZct3NxWMBQupl4QfD7ULxnt4ipt_2FBoH_NusboIuw,3781
143
143
  reconcile/aws_account_manager/metrics.py,sha256=YB10ea4kIGwJfs5N14RF-RoXPb-QQWaDBz1jLZ3YWE0,917
144
144
  reconcile/aws_account_manager/reconciler.py,sha256=5YG7nZ4GG1SY2Pe_OxetdtzOnl37MllZMu_ca22vRSo,15025
@@ -213,7 +213,7 @@ reconcile/gql_definitions/advanced_upgrade_service/aus_organization.py,sha256=zU
213
213
  reconcile/gql_definitions/app_interface_metrics_exporter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
214
214
  reconcile/gql_definitions/app_interface_metrics_exporter/onboarding_status.py,sha256=uVEEqU6YYmKsNTo6EWlFnoVmqha2rvBDx-wiD64VmG0,1679
215
215
  reconcile/gql_definitions/aws_account_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
216
- reconcile/gql_definitions/aws_account_manager/aws_accounts.py,sha256=R-Au5ZErdKSWqANtpiayLikvMSj3ha9muWoX5FI7-AE,4718
216
+ reconcile/gql_definitions/aws_account_manager/aws_accounts.py,sha256=GVRRBlj_OOw3rh-IQFsMs0WYDNy2gA4xdUciO7NJlDo,4777
217
217
  reconcile/gql_definitions/aws_ami_cleanup/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
218
218
  reconcile/gql_definitions/aws_ami_cleanup/asg_namespaces.py,sha256=OJmeTu7uirLGAysZ3IQTtRXqMyL8noi_QZxPuWYxxmI,3678
219
219
  reconcile/gql_definitions/aws_saml_idp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -844,8 +844,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
844
844
  tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
845
845
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
846
846
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
847
- qontract_reconcile-0.10.1rc898.dist-info/METADATA,sha256=djXoIdLZii-8g7SmSzukn2Eoa_UKCQg0OaD4rY1B85c,2273
848
- qontract_reconcile-0.10.1rc898.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
849
- qontract_reconcile-0.10.1rc898.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
850
- qontract_reconcile-0.10.1rc898.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
851
- qontract_reconcile-0.10.1rc898.dist-info/RECORD,,
847
+ qontract_reconcile-0.10.1rc899.dist-info/METADATA,sha256=7CJ9adlmsE4h9lgftGf26kORoj0ADEH_t14mjUg9P6M,2273
848
+ qontract_reconcile-0.10.1rc899.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
849
+ qontract_reconcile-0.10.1rc899.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
850
+ qontract_reconcile-0.10.1rc899.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
851
+ qontract_reconcile-0.10.1rc899.dist-info/RECORD,,
@@ -159,13 +159,12 @@ class AwsAccountMgmtIntegration(
159
159
  ) -> None:
160
160
  """Create new AWS accounts."""
161
161
  for account_request in account_requests:
162
- if not (
163
- uid := reconciler.create_organization_account(
164
- aws_api=aws_api,
165
- name=account_request.name,
166
- email=account_request.account_owner.email,
167
- )
168
- ):
162
+ uid = account_request.uid or reconciler.create_organization_account(
163
+ aws_api=aws_api,
164
+ name=account_request.name,
165
+ email=account_request.account_owner.email,
166
+ )
167
+ if not uid:
169
168
  continue
170
169
 
171
170
  with aws_api.assume_role(
@@ -88,6 +88,7 @@ query AWSAccountManagerAccounts {
88
88
  }
89
89
  resourcesDefaultRegion
90
90
  supportedDeploymentRegions
91
+ uid
91
92
  }
92
93
  organization_accounts {
93
94
  ... AWSAccountManaged
@@ -139,6 +140,7 @@ class AWSAccountRequestV1(ConfiguredBaseModel):
139
140
  quota_limits: Optional[list[AWSQuotaLimitsV1]] = Field(..., alias="quotaLimits")
140
141
  resources_default_region: str = Field(..., alias="resourcesDefaultRegion")
141
142
  supported_deployment_regions: Optional[list[str]] = Field(..., alias="supportedDeploymentRegions")
143
+ uid: Optional[str] = Field(..., alias="uid")
142
144
 
143
145
 
144
146
  class AWSAccountV1(AWSAccountManaged):