qontract-reconcile 0.10.1rc994__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.1rc994
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
@@ -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.1rc994.dist-info/METADATA,sha256=NDNNmj_EkStdXwWIxSksfHHzEU6G17bZRB_G3z5DxO4,2262
858
- qontract_reconcile-0.10.1rc994.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
859
- qontract_reconcile-0.10.1rc994.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
860
- qontract_reconcile-0.10.1rc994.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
861
- qontract_reconcile-0.10.1rc994.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,,
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():