qontract-reconcile 0.10.1rc993__py3-none-any.whl → 0.10.1rc995__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.1rc993
3
+ Version: 0.10.1rc995
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
@@ -112,7 +112,7 @@ reconcile/terraform_aws_route53.py,sha256=1C1_xd_xjysPLSYKvohS6bfSsjSMP0U3sWVcRN
112
112
  reconcile/terraform_cloudflare_dns.py,sha256=-aLEe2QnH5cJPu7HWqs-R9NmQ1NlFbcVUm0v7alVL3I,13431
113
113
  reconcile/terraform_cloudflare_resources.py,sha256=41Mj1WkuS75slCDpmhG2GGf1nh3BwfxcdNC73-PNadc,15000
114
114
  reconcile/terraform_cloudflare_users.py,sha256=iyTG5sj20Jg4J4qWJ144KVptfIHGOSfH8wQKxu0imq0,13942
115
- reconcile/terraform_repo.py,sha256=E-tVE62H5-B8CStVOi_DwqQ5l3qIYGd-l8MBFSo41mQ,16414
115
+ reconcile/terraform_repo.py,sha256=TKqlodhQGoAtQ6nDm04TNlpx4wpgJ_n4atoUK5Rfd7o,16444
116
116
  reconcile/terraform_resources.py,sha256=-sgMMHDtNvnQyNR05-MKebI_pSiyxSWAg8LmeA2_Ntk,19326
117
117
  reconcile/terraform_tgw_attachments.py,sha256=EucuF4p3RWKTS4GTPd8oZmR79GpIW_grQl2PAeeNQeI,18665
118
118
  reconcile/terraform_users.py,sha256=HqSm3ev3b8dZ9J6F_phDZB-FQsnlsdeKp9RPoY1cU94,10188
@@ -823,7 +823,7 @@ tools/app_interface_metrics_exporter.py,sha256=zkwkxdAUAxjdc-pzx2_oJXG25fo0Fnyd5
823
823
  tools/app_interface_reporter.py,sha256=1ZP58LYV6ww3XOLVxgy8NKasMb1jQmp4BNqzTEB0VBE,17723
824
824
  tools/glitchtip_access_reporter.py,sha256=oPBnk_YoDuljU3v0FaChzOwwnk4vap1xEE67QEjzdqs,2948
825
825
  tools/glitchtip_access_revalidation.py,sha256=8kbBJk04mkq28kWoRDDkfCGIF3GRg3pJrFAh1sW0dbk,2821
826
- tools/qontract_cli.py,sha256=hFrZeJCpZJFe634kJaGC4EfaLhVr_HoQjMUi2T7rCts,126044
826
+ tools/qontract_cli.py,sha256=w_z2WAfPxXRXm8jbrg-Vc95sIYbPxVu3lCR14lEK3J4,125855
827
827
  tools/sd_app_sre_alert_report.py,sha256=e9vAdyenUz2f5c8-z-5WY0wv-SJ9aePKDH2r4IwB6pc,5063
828
828
  tools/template_validation.py,sha256=qpKYaTgk0GOPGa2Ct5_5sKdwIHtCAKIBGzsMPuJU5fw,3371
829
829
  tools/cli_commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -854,8 +854,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
854
854
  tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
855
855
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
856
856
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
857
- qontract_reconcile-0.10.1rc993.dist-info/METADATA,sha256=D2wGMe7boygHgZavBj6P-78L2Mx4C9FZxKzi-rHUTYc,2262
858
- qontract_reconcile-0.10.1rc993.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
859
- qontract_reconcile-0.10.1rc993.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
860
- qontract_reconcile-0.10.1rc993.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
861
- qontract_reconcile-0.10.1rc993.dist-info/RECORD,,
857
+ qontract_reconcile-0.10.1rc995.dist-info/METADATA,sha256=O45HKoKnz-vWM-qm9KKu_RKXfZNVmO9fhTPKN4PKROk,2262
858
+ qontract_reconcile-0.10.1rc995.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
859
+ qontract_reconcile-0.10.1rc995.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
860
+ qontract_reconcile-0.10.1rc995.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
861
+ qontract_reconcile-0.10.1rc995.dist-info/RECORD,,
@@ -109,6 +109,7 @@ class TerraformRepoIntegration(
109
109
  # when updating TerraformRepoV1 GQL schema, Pydantic does not gracefully handle these changes and fails to parse
110
110
  # the existing state stored in S3. This is due to a behavior in Pydantic V1 that has since been addressed in V2
111
111
  # https://docs.pydantic.dev/latest/blog/pydantic-v2/#required-vs-nullable-cleanup
112
+ # so in this case, tf-repo will just recreate all of those state files in S3 and not actually do a plan or apply
112
113
  logging.error(err)
113
114
  logging.info(
114
115
  "Unable to parse existing Terraform-Repo state from S3. Note that this is separate from the actual .tfstate files. Terraform Repo will re-create its own state upon merge and will not update any infrastructure. This typically occurs with changes to the Terraform Repo schema files and is normally resolved once state is re-created."
@@ -121,9 +122,6 @@ class TerraformRepoIntegration(
121
122
  recreate_state=True,
122
123
  )
123
124
 
124
- if repo_diff_result:
125
- self.print_output(repo_diff_result, dry_run)
126
-
127
125
  def print_output(self, diff: list[TerraformRepoV1], dry_run: bool) -> OutputFile:
128
126
  """Parses and prints the output of a Terraform Repo diff for the executor
129
127
 
tools/qontract_cli.py CHANGED
@@ -139,6 +139,7 @@ from reconcile.utils.oc_map import init_oc_map_from_clusters
139
139
  from reconcile.utils.ocm import OCM_PRODUCT_ROSA, OCMMap
140
140
  from reconcile.utils.ocm_base_client import init_ocm_base_client
141
141
  from reconcile.utils.output import print_output
142
+ from reconcile.utils.saasherder.models import TargetSpec
142
143
  from reconcile.utils.saasherder.saasherder import SaasHerder
143
144
  from reconcile.utils.secret_reader import (
144
145
  SecretReader,
@@ -3497,21 +3498,17 @@ def saas_dev(ctx, app_name=None, saas_file_name=None, env_name=None) -> None:
3497
3498
  if target.namespace.environment.name != env_name:
3498
3499
  continue
3499
3500
 
3500
- parameters: dict[str, Any] = {}
3501
- parameters.update(target.namespace.environment.parameters or {})
3502
- parameters.update(saas_file.parameters or {})
3503
- parameters.update(rt.parameters or {})
3504
- parameters.update(target.parameters or {})
3505
-
3506
- for replace_key, replace_value in parameters.items():
3507
- if not isinstance(replace_value, str):
3508
- continue
3509
- replace_pattern = "${" + replace_key + "}"
3510
- for k, v in parameters.items():
3511
- if not isinstance(v, str):
3512
- continue
3513
- if replace_pattern in v:
3514
- parameters[k] = v.replace(replace_pattern, replace_value)
3501
+ parameters = TargetSpec(
3502
+ saas_file=saas_file,
3503
+ resource_template=rt,
3504
+ target=target,
3505
+ # process_template options
3506
+ image_auth=None, # type: ignore[arg-type]
3507
+ hash_length=None, # type: ignore[arg-type]
3508
+ github=None, # type: ignore[arg-type]
3509
+ target_config_hash=None, # type: ignore[arg-type]
3510
+ secret_reader=None, # type: ignore[arg-type]
3511
+ ).parameters()
3515
3512
 
3516
3513
  parameters_cmd = ""
3517
3514
  for k, v in parameters.items():