-
Notifications
You must be signed in to change notification settings - Fork 372
feature: forward backend for ingress as annotation zalando.org/skipper-backend #3665
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
Conversation
…r-backend nop: increase readability Signed-off-by: Sandor Szücs <[email protected]>
c072c0b
to
369f310
Compare
} else if err != nil { | ||
ic.logger.Errorf("Failed to convert default backend: %v", err) | ||
} | ||
|
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.
for readability, because route
is not touched anymore until "return".
logger: logger, | ||
annotationFilters: annotationFilter(i.Metadata, logger), | ||
annotationPredicate: annotationPredicate(i.Metadata), | ||
annotationBackend: annotationBackendString(i.Metadata), |
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.
here we need annotationBackendString() to make it more clean
👍 |
I think we can add another test case for filter by annotation & predicate by annotation (feature where we add filter if some annotation exists) Also we need to extend validation webhook to only allow forward value for now. |
These test cases are in the PR. Maybe I miss understand your comment.
I don't see the need. This should not be used by ordinary users anyways. |
…r-backend (#3665) feature: [forward backend](https://opensource.zalando.com/skipper/reference/backends/#forward-backend) for ingress as annotation `zalando.org/skipper-backend`. RouteGroup validation makes sure that the backend type is recognized. dataclients/kubernetes/definitions/testdata/validation/test-forward.log is an empty file, because if log file does not exist test would be skipped. Signed-off-by: Sandor Szücs <[email protected]> Signed-off-by: Mustafa Abdelrahman <[email protected]>
feature: forward backend for ingress as annotation
zalando.org/skipper-backend
.RouteGroup validation makes sure that the backend type is recognized.
dataclients/kubernetes/definitions/testdata/validation/test-forward.log is an empty file, because if log file does not exist test would be skipped.