Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add retry logic and feature flag in microsegmentation UI #1710

Merged
merged 2 commits into from
Jan 27, 2022

Conversation

chandrasekhar1996
Copy link
Contributor

Signed-off-by: craman [email protected]

@chandrasekhar1996 chandrasekhar1996 force-pushed the microsegUI branch 2 times, most recently from 533c49a to 9dae700 Compare December 20, 2021 17:38
@abvaidya
Copy link
Collaborator

Could you please add a little more details in comment as to what this PR is about?

@abvaidya abvaidya added the in-progress waiting on clarifications asked on the issue / pull request label Dec 20, 2021
@chandrasekhar1996
Copy link
Contributor Author

Creation of microsegmentation policy involves creation of policy and assertion (if it doesn't exist) and then we need to fetch the assertionID of the newly created assertion to add assertionConditions.

I have added a retry logic for fetching the policy/assertion after creating it to account for read-after-write inconsistency. We try to fetch the policy twice with a 1 second sleep interval.

I have also added a feature flag for the microsegmentation page. Currently we have a feature flag for the entire UI that we use to show/hide tabs. The new feature flag can be used to hide specific features in a page while under development.

@chandrasekhar1996 chandrasekhar1996 force-pushed the microsegUI branch 3 times, most recently from f01ba6e to 7543913 Compare January 5, 2022 18:47
Signed-off-by: craman <[email protected]>
@abvaidya abvaidya merged commit 2a019c7 into AthenZ:master Jan 27, 2022
dvirguttman pushed a commit to dvirguttman/athenz that referenced this pull request Mar 28, 2023
* add retry logic and feature flag in microsegmentation UI

Signed-off-by: craman <[email protected]>

* address PR comments

Signed-off-by: craman <[email protected]>

Co-authored-by: craman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in-progress waiting on clarifications asked on the issue / pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants