Skip to content

Conversation

@AYM1607
Copy link
Contributor

@AYM1607 AYM1607 commented Jul 31, 2025

Allow replacing a resource conditionally based on its current state.

…laced when a condition is met.

Signed-off-by: Mariano Uvalle <juvallegarza@microsoft.com>
@AYM1607 AYM1607 changed the title Implement the replace-when annotation replace-when annotation Jul 31, 2025
Mariano Uvalle added 2 commits July 31, 2025 16:57
Signed-off-by: Mariano Uvalle <juvallegarza@microsoft.com>
Signed-off-by: Mariano Uvalle <juvallegarza@microsoft.com>

- The eno-reconciler process can fall back to client-side three-way merge patch by setting `--disable-ssa`
- Merge can be disabled for a resource by setting the `eno.azure.io/replace: "true"` annotation (a full `update` request will be used instead of a `patch`)
- Merge can be disabled conditionally by setting the `eno.azure.io/replace-when` annotation with a CEL expression, it takes precedence over the non-conditional replace:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Precedence is arguable, maybe we should fail closed if they're both present.

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