• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zalando / skipper / 12176249275
79%

Build:
DEFAULT BRANCH: master
Ran 05 Dec 2024 09:05AM UTC
Jobs 1
Files 277
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Dec 2024 08:48AM UTC coverage: 80.296% (+0.02%) from 80.274%
12176249275

push

github

web-flow
dataclients/kubernetes: append predicates to routes of Ingress/RouteGroup having specific annotation (#3328)

The main purpose of this change is to allow skipper operators to dynamically add predicates to routes based on annotations key-value pairs in Kubernetes resources (metadata.annotation). This provides more flexibility in routing configuration without modifying the core Ingress or RouteGroup definitions.

Key changes:
- Added KubernetesAnnotationPredicates option & `-kubernetes-annotation-predicates` flag for public hostnames, which can be specified multiple times.
- Added KubernetesEastWestRangeAnnotationPredicates option & `-kubernetes-east-west-range-annotation-predicates` flag for internal hostnames, which can be specified multiple times.
- Modified Ingress and RouteGroup clients to apply annotation predicates depending on the host
- Added test cases for new functionality

Run & test with

```sh

➜ ./bin/skipper -kubernetes -kubernetes-annotation-predicates="zalando.org/traffic-disabled=true=False()" -kubernetes-east-west-range-annotation-predicates="zalando.org/traffic-disabled=true=False()"
➜ #or
➜ ./bin/routesrv -kubernetes -kubernetes-annotation-predicates="zalando.org/traffic-disabled=true=False()" -kubernetes-east-west-range-annotation-predicates="zalando.org/traffic-disabled=true=False()"
```

Having both flags with same value will append configured predicates to all routes of Ingress/RouteGroup resources annotated with `zalando.org/traffic-disabled: true`, routes defined in:

* The `spec.rules` section of Ingress resources.
* Routes specified using the `zalando.org/skipper-routes` annotation of Ingress resources.
* The `spec.routes` section of RouteGroup resources.

Signed-off-by: Mustafa Abdelrahman <mustafa.abdelrahman@zalando.de>

139 of 149 new or added lines in 8 files covered. (93.29%)

1 existing line in 1 file now uncovered.

23668 of 29476 relevant lines covered (80.3%)

105757.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12176249275.1 05 Dec 2024 09:05AM UTC 0
80.3
GitHub Action Run
Source Files on build 12176249275
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #12176249275
  • 8c6bc0af on github
  • Prev Build on master (#11681190816)
  • Next Build on master (#12176551061)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc