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 feoConfigEnabled bool to frontend spec for feo self service #227

Merged

Conversation

florkbr
Copy link
Contributor

@florkbr florkbr commented Nov 11, 2024

Resolves https://issues.redhat.com/browse/RHCLOUD-35427

We have added a new optional flag called feoConfigEnabled to the frontend spec that will allow for gradual consumption of all our tweaks to the operator by our tenant applications (as several of the tenant applications have very out of date modules and are missing the widgets, nav, etc. in their current frontend.yaml).

I have updated our existing tests to account for this new flag and have added a new kuttl test that ensures when the flag is false - none of the modules/widgets/service tiles/etc are synced into the config map. This should allow chrome service to use the config if it is present - or fall back to the legacy flow with minimal logic.

We did need to make an exception for chrome frontend in the fed-modules evaluation logic to ensure that our SSO URL is always set.

@florkbr florkbr marked this pull request as ready for review November 13, 2024 00:49
@florkbr
Copy link
Contributor Author

florkbr commented Nov 13, 2024

@Hyperkid123 do you mind taking a look?

Copy link
Contributor

@Hyperkid123 Hyperkid123 left a comment

Choose a reason for hiding this comment

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

Can we add a test for the chrome exception? This hardcoded exception might feel a bit strange to others. I want to make sure we have a check that would catch if someone removes it.

We can remove it once the migration is done and think about a better way of passing down the SSO URL, but until then its necessary.

Copy link
Contributor

@Hyperkid123 Hyperkid123 left a comment

Choose a reason for hiding this comment

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

NVM its covered by existing test

@Hyperkid123 Hyperkid123 merged commit 92a5c33 into RedHatInsights:main Nov 13, 2024
9 checks passed
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