-
Notifications
You must be signed in to change notification settings - Fork 34
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
base: master
Are you sure you want to change the base?
Conversation
.../allegro/tech/servicemesh/envoycontrol/snapshot/resource/routes/EnvoyIngressRoutesFactory.kt
Outdated
Show resolved
Hide resolved
...egro/tech/servicemesh/envoycontrol/snapshot/resource/routes/EnvoyIngressRoutesFactoryTest.kt
Outdated
Show resolved
Hide resolved
...egro/tech/servicemesh/envoycontrol/snapshot/resource/routes/EnvoyIngressRoutesFactoryTest.kt
Outdated
Show resolved
Hide resolved
283152e
to
f04810f
Compare
|
||
@Test | ||
@Suppress("LongMethod") | ||
fun `should create not create routes for status endpoints if the service is not whitelisted`() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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`() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not necessary: ingresStatusRoute > ingressStatusRoute
also another nitpick - white list > whitelist |
introudced white list for separated routes for status endpoints to provide gradual rollout, also refactored a code to use existing properties