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

Create controller framework and move validations to offline processing #7136

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

nrfox
Copy link
Contributor

@nrfox nrfox commented Feb 19, 2024

Describe the change

Moves calculating namespace/cluster-wide validations into a "controller" for offline processing. Individual object validations are still done "on demand" within the request. Calculates validations every 30s. Does not yet watch istio objects to re-calculate validations when they change.

Steps to test the PR

  1. Visit istio config page and ensure validations are present (configuration is green/yellow/red).
  2. Update an individual istio object to be invalid.
  3. Return to list page and ensure that validations on the list page match what was reported on the individual page.

Automation testing

Covered by newly added "controller" tests.

Issue reference

Relates to #7076

@nrfox nrfox requested a review from hhovsepy February 19, 2024 20:44
@@ -1,4 +1,5 @@
{
"proxy": "http://localhost:20001",
Copy link
Contributor

Choose a reason for hiding this comment

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

remove this

@hhovsepy
Copy link
Contributor

hhovsepy commented Mar 8, 2024

This PR becomes very important for Perf optimization effort.

@hhovsepy
Copy link
Contributor

hhovsepy commented Mar 8, 2024

The failing 2 validation tests are because of cache is not reloaded yet, just require timeout and refresh the page.

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.

None yet

2 participants