qontract-reconcile 0.10.1rc791__py3-none-any.whl → 0.10.1rc792__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.1rc791
3
+ Version: 0.10.1rc792
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
@@ -664,7 +664,7 @@ reconcile/utils/state.py,sha256=FK8NLT1xyumuXpYRm0Nk6pWpOE_U6-NovGn6zKCw8vw,1629
664
664
  reconcile/utils/structs.py,sha256=LcbLEg8WxfRqM6nW7NhcWN0YeqF7SQzxOgntmLs1SgY,352
665
665
  reconcile/utils/template.py,sha256=wTvRU4AnAV_o042tD4Mwls2dwWMuk7MKnde3MaCjaYg,331
666
666
  reconcile/utils/terraform_client.py,sha256=mZEKpu6nbfiQd60wRkc8-5sljBTUTOgaAKnF89itMzU,32085
667
- reconcile/utils/terrascript_aws_client.py,sha256=4FR4JUSniDOFMtc_r1t2z0x_drrBfcw-J33AdWeJEyw,272662
667
+ reconcile/utils/terrascript_aws_client.py,sha256=VlvIHgrZRiMFVgx6a8ZHxoiJoDwqbtOmsZFnwwNrdL0,273199
668
668
  reconcile/utils/three_way_diff_strategy.py,sha256=nyqeQsLCoPI6e16k2CF3b9KNgQLU-rPf5RtfdUfVMwE,4468
669
669
  reconcile/utils/throughput.py,sha256=iP4UWAe2LVhDo69mPPmgo9nQ7RxHD6_GS8MZe-aSiuM,344
670
670
  reconcile/utils/unleash.py,sha256=1D56CsZfE3ShDtN3IErE1T2eeIwNmxhK-yYbCotJ99E,3601
@@ -785,8 +785,8 @@ tools/test/test_app_interface_metrics_exporter.py,sha256=SX7qL3D1SIRKFo95FoQztvf
785
785
  tools/test/test_qontract_cli.py,sha256=w2l4BHB09k1d-BGJ1jBUNCqDv7zkqYrMHojQXg-21kQ,4155
786
786
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
787
787
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
788
- qontract_reconcile-0.10.1rc791.dist-info/METADATA,sha256=fZl69FcdS3wj97ZwyE1VwTV42kLiyLmoNcZ0yrB7T9Q,2364
789
- qontract_reconcile-0.10.1rc791.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
790
- qontract_reconcile-0.10.1rc791.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
791
- qontract_reconcile-0.10.1rc791.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
792
- qontract_reconcile-0.10.1rc791.dist-info/RECORD,,
788
+ qontract_reconcile-0.10.1rc792.dist-info/METADATA,sha256=ubnMxzBVaqBUITyyF1R5bgCW_Eckk_tfSLomJ9VWdSg,2364
789
+ qontract_reconcile-0.10.1rc792.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
790
+ qontract_reconcile-0.10.1rc792.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
791
+ qontract_reconcile-0.10.1rc792.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
792
+ qontract_reconcile-0.10.1rc792.dist-info/RECORD,,
@@ -6464,11 +6464,20 @@ class TerrascriptClient: # pylint: disable=too-many-public-methods
6464
6464
  )
6465
6465
 
6466
6466
  # resource - msk config
6467
+ # unique msk config resource name enables "create_before_destroy" lifecycle
6468
+ # which is required when changing version which requires a resource replacement
6469
+ msk_version_str = values["kafka_version"].replace(".", "-")
6470
+ msk_config_name = f"{resource_id}-{msk_version_str}"
6467
6471
  msk_config = aws_msk_configuration(
6468
6472
  resource_id,
6469
- name=resource_id,
6473
+ name=msk_config_name,
6470
6474
  kafka_versions=[values["kafka_version"]],
6471
6475
  server_properties=values["server_properties"],
6476
+ # lifecycle create_before_destroy is required to ensure that the config is created
6477
+ # before it is assigned to the cluster
6478
+ lifecycle={
6479
+ "create_before_destroy": True,
6480
+ },
6472
6481
  )
6473
6482
  tf_resources.append(msk_config)
6474
6483
  values.pop("server_properties", None)