Commit fffe4ba
fix(manifests): add gRPC Route for ambient-api-server on mpp-openshift (RHOAIENG-56775) (#1224)
## Summary
- Adds missing OpenShift Route `ambient-api-server-grpc` to
`components/manifests/overlays/mpp-openshift/ambient-api-server-route.yaml`
with `passthrough` TLS termination targeting the `grpc` service port
(9000)
- Extends `defaultOpenShiftPatterns` in the Go SDK
(`go-sdk/client/session_watch.go`) to include `paas.redhat.com`, so
`acpctl` correctly derives the gRPC Route hostname on MPP clusters
instead of falling back to unreachable pod-IP:9000
## Root Cause
The mpp-openshift overlay only exposed the HTTP Route (port 8000). The
gRPC port (9000) had no Route, causing `acpctl session messages -f` and
`acpctl get sessions -w` to time out. Additionally, the SDK hostname
detection did not recognize
`*.apps.int.spoke.dev.us-east-1.aws.paas.redhat.com` as an OpenShift
Route pattern.
## Test Plan
- [ ] Deploy `kubectl apply -k
components/manifests/overlays/mpp-openshift/` and verify
`ambient-api-server-grpc` Route is created
- [ ] Confirm Route hostname follows pattern
`ambient-api-server-grpc-<namespace>.apps.<cluster>.paas.redhat.com`
- [ ] Run `acpctl session messages -f <session-id>` against the MPP
cluster — should connect without timeout
- [ ] Run `acpctl get sessions -w` — should stream watch events
Fixes: RHOAIENG-56775
🤖 Generated with [Claude Code](https://claude.ai/code)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added a dedicated gRPC route for the API server that uses re-encrypt
TLS and redirects insecure edge traffic.
* Enabled gRPC TLS for the API server and configured it to use
secret-mounted certificates.
* **Infrastructure Updates**
* Extended OpenShift hostname matching to recognize additional cloud
environment domains.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Ambient Code Bot <bot@ambient-code.local>
Co-authored-by: Claude <noreply@anthropic.com>1 parent d6f6ba1 commit fffe4ba
3 files changed
Lines changed: 31 additions & 1 deletion
File tree
- components
- ambient-sdk/go-sdk/client
- manifests/overlays/mpp-openshift
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
0 commit comments