Skip to content

Conversation

szuecs
Copy link
Member

@szuecs szuecs commented Oct 14, 2025

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.

@szuecs szuecs added the major moderate risk, for example new API, small filter changes that have no risk like refactoring or logs label Oct 14, 2025
…r-backend

nop: increase readability

Signed-off-by: Sandor Szücs <[email protected]>
@szuecs szuecs force-pushed the feature/forward-ingress branch from c072c0b to 369f310 Compare October 14, 2025 19:36
} else if err != nil {
ic.logger.Errorf("Failed to convert default backend: %v", err)
}

Copy link
Member Author

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),
Copy link
Member Author

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

@szuecs
Copy link
Member Author

szuecs commented Oct 15, 2025

👍

@szuecs szuecs merged commit f72ec2d into master Oct 15, 2025
14 checks passed
@szuecs szuecs deleted the feature/forward-ingress branch October 15, 2025 18:19
@MustafaSaber
Copy link
Member

MustafaSaber commented Oct 15, 2025

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.

@szuecs
Copy link
Member Author

szuecs commented Oct 15, 2025

I think we can add another test case for filter by annotation & predicate by annotation (feature where we add filter if some annotation exists)

These test cases are in the PR. Maybe I miss understand your comment.

Also we need to extend validation webhook to only allow forward value for now.

I don't see the need. This should not be used by ordinary users anyways.
I plan to use this only as tool to support stackset by orchestrating it zalando-incubator/stackset-controller#716

MustafaSaber pushed a commit that referenced this pull request Oct 17, 2025
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

major moderate risk, for example new API, small filter changes that have no risk like refactoring or logs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants