Skip to content

Fixed bugs with creation & deletion of role assignments when using intents v1 Azure roles.#586

Merged
evyatarmeged merged 19 commits intomainfrom
evya/ignore_roleassignment_exists_err
Apr 24, 2025
Merged

Fixed bugs with creation & deletion of role assignments when using intents v1 Azure roles.#586
evyatarmeged merged 19 commits intomainfrom
evya/ignore_roleassignment_exists_err

Conversation

@evyatarmeged
Copy link
Copy Markdown
Contributor

@evyatarmeged evyatarmeged commented Apr 19, 2025

Description

Fixed bugs with creation & deletion of role assignments when using intents v1 Azure roles.
Slight refactoring and tweaks for how we handle roles & role assignments, especially deletion flows.
Removed agent_periodic_test.go, since periodic cleanups were removed.

@evyatarmeged evyatarmeged requested a review from orishoshan April 19, 2025 16:27
@evyatarmeged evyatarmeged force-pushed the evya/ignore_roleassignment_exists_err branch from 0afa5b9 to 6d700a4 Compare April 20, 2025 09:24
@evyatarmeged evyatarmeged changed the title Fixed bugs with creation & deletion of role assignments when using intents v1 Azure roles Fixed bugs with creation & deletion of role assignments when using intents v1 Azure roles. Apr 20, 2025
Copy link
Copy Markdown
Collaborator

@orishoshan orishoshan left a comment

Choose a reason for hiding this comment

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

See comments. And also, we need a full-flow tests, from ClientIntents to calling APIs, with both usages of the CRD (roles and actions). To be clear, it doesn't have to be a new test if the flow is already tested, but the test has to be failing on the old code and passing on the new code, and covering the scenarios that were fixed.

@evyatarmeged evyatarmeged requested a review from orishoshan April 23, 2025 12:09
…ts/azurepolicyagent/agent.go

Co-authored-by: Ori Shoshan <ori@otterize.com>
@evyatarmeged evyatarmeged requested a review from orishoshan April 24, 2025 08:34
@evyatarmeged evyatarmeged merged commit c1a41a6 into main Apr 24, 2025
22 checks passed
@evyatarmeged evyatarmeged deleted the evya/ignore_roleassignment_exists_err branch April 24, 2025 09:06
@github-actions github-actions bot locked and limited conversation to collaborators Apr 24, 2025
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