Skip to content

Conversation

@crussell10
Copy link

@crussell10 crussell10 commented Aug 11, 2025

Description

Previously the dynamic block was created whenever origin_shield config existed, even with enabled = false. Now only creates the block when enabled = true, preventing unnecessary resource updates.

Motivation and Context

Prevents unnecessary removal and recreation of origin resources even when no changes have been made, when 'origin_shield' is defined as enabled = false.

Issue

Previously observed in - #142

Previously the dynamic block was created whenever origin_shield config
existed, even with enabled=false. Now only creates the block when
enabled=true, preventing unnecessary resource updates.
@crussell10 crussell10 changed the title fix: only create origin_shield block when explicitly enabled fix: Only create origin_shield block when explicitly enabled Aug 11, 2025
@crussell10
Copy link
Author

After further testing, desired state is not being achieved.

Setting to false removes the block from the configuration but leaves it enabled in the console (if changing from true to false).
Will close this PR for now until resolved. Alternative option is to simply remove the origin shield block when not in use.

@crussell10 crussell10 closed this Aug 11, 2025
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 11, 2025
@antonbabenko
Copy link
Member

This PR is included in version 6.0.0 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants