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

feature white list for separated status routes #451

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ferdudas97
Copy link
Contributor

introudced white list for separated routes for status endpoints to provide gradual rollout, also refactored a code to use existing properties

@Ferdudas97 Ferdudas97 force-pushed the whitelist-for-status-endpoints branch from 283152e to f04810f Compare March 7, 2025 11:05

@Test
@Suppress("LongMethod")
fun `should create not create routes for status endpoints if the service is not whitelisted`() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
fun `should create not create routes for status endpoints if the service is not whitelisted`() {
fun `should not create routes for status endpoints if the service is not whitelisted`() {


@Test
@Suppress("LongMethod")
fun `should create create routes for status endpoints when whitelist contains wildcard`() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
fun `should create create routes for status endpoints when whitelist contains wildcard`() {
fun `should create routes for status endpoints when whitelist contains wildcard`() {

hasOnlyRoutesInOrder(
*adminRoutes,
{
ingresStatusRoute()
Copy link
Collaborator

Choose a reason for hiding this comment

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

not necessary: ingresStatusRoute > ingressStatusRoute

@kozjan
Copy link
Collaborator

kozjan commented Mar 7, 2025

also another nitpick - white list > whitelist

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