Skip to content

Conversation

Benbentwo
Copy link
Member

This pull request refines the handling of custom lifecycle rules in Terraform configurations by improving validation logic and enhancing the selection merging process. The changes aim to make the code more robust and handle edge cases more effectively.

Improvements to selection merging logic:

  • Enhanced null-checks and condition handling in main.tf: The selection merging logic now includes a check to ensure that countUnit is only added if it is not null, and the filtering logic for keys like tagPrefixList and tagPatternList has been updated to handle null values more gracefully. (main.tf, main.tfL140-R152)

Refinements to validation logic:

  • Validation for tagStatus in variables.tf: Updated the condition to use length(coalesce(...)) for checking tagPrefixList and tagPatternList, ensuring proper handling of null or empty lists. (variables.tf, variables.tfL163-R163)
  • Validation for countType in variables.tf: Adjusted the condition to ensure that countUnit is specified when countType is sinceImagePushed, with a clearer error message for improved readability. (variables.tf, variables.tfL193-R195)

@Benbentwo Benbentwo requested review from a team as code owners July 24, 2025 22:53
@Benbentwo Benbentwo requested review from hans-d and kevcube July 24, 2025 22:53
@mergify mergify bot added the triage Needs triage label Jul 24, 2025
@Benbentwo
Copy link
Member Author

/terratest

@goruha
Copy link
Member

goruha commented Jul 25, 2025

/terratest

@mergify mergify bot removed the triage Needs triage label Jul 25, 2025
@Benbentwo Benbentwo merged commit 7f3b6bc into main Jul 25, 2025
32 checks passed
@Benbentwo Benbentwo deleted the bugfixes-from-component branch July 25, 2025 16:06
Copy link
Contributor

These changes were released in v0.43.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants