Repository navigation
Commit d24d1d4
committed
feat(kubernetes): run service ingress as a dedicated controller deployment
Move the service-ingress reconciler out of the gateway process into its
own pod, as requested in review. The gateway now publishes its
exposed-service hostname set into a feed ConfigMap (skipping the
publication on persistence errors so a transient outage can never look
like an empty set), and the chart deploys a one-replica controller
running the gateway image's new service-ingress subcommand against the
same configuration file. The controller reads the feed each pass: a
missing or unreadable feed skips the pass, while an existing feed with
an empty list is authoritative and deletes everything.
- service_ingress: ExposedServiceSource now returns Option so feed
absence never triggers deletions; add ServiceIngressFeedPublisher
(create-or-update, unchanged-content skip, 409 retry convergence) and
ConfigMapFeedSource (format-versioned, strict malformed-data refusal)
- config: publish_config_map_name and publish_interval_secs fields with
validation
- cli: service-ingress subcommand behind the new
openshell-server/service-ingress-controller feature, enabled by the
gateway's compute-driver-kubernetes feature; shares the gateway TOML
- helm: service-ingress Deployment (replicas value, shared config
ConfigMap), dedicated controller ServiceAccount, controller Role
(feed reads + all ingress kinds), and a publisher Role for the
gateway ServiceAccount pinned to the feed object — the gateway SA no
longer holds any ingress-object permissions
- hostnames() is now fallible so the publisher distinguishes store
outages from empty sets
Also resolves the clippy -D warnings fallout across the touched files
(doc backticks, merged bounds, is_some_and).
Signed-off-by: Jesse Jaggars <jjaggars@redhat.com>1 parent e6f91c0 commit d24d1d4
21 files changed
Lines changed: 959 additions & 181 deletions
File tree
- crates
- openshell-driver-kubernetes/src
- openshell-gateway
- src
- openshell-server
- src
- deploy/helm/openshell
- templates
- tests
- docs
- how-it-works/gateways
- kubernetes
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | | - | |
| 456 | + | |
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | | - | |
| 472 | + | |
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
498 | 504 | | |
499 | 505 | | |
500 | 506 | | |
| |||
510 | 516 | | |
511 | 517 | | |
512 | 518 | | |
| 519 | + | |
| 520 | + | |
513 | 521 | | |
514 | 522 | | |
515 | 523 | | |
| |||
635 | 643 | | |
636 | 644 | | |
637 | 645 | | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
638 | 652 | | |
639 | 653 | | |
640 | 654 | | |
| |||
0 commit comments