Objective: Verify the CLI correctly defaults KAS to Route strategy for Private topology, matching the behavior when --external-dns-domain is set.
Implementation: The fix adds an isPrivate parameter to GetIngressServicePublishingStrategyMapping(). When isPrivate=true, the function returns Route strategy for APIServer instead of LoadBalancer, regardless of whether --external-dns-domain is set.
| Step | Check | Result | Evidence |
|---|---|---|---|
| 1 | APIServer uses Route strategy | PASS | "service": "APIServer", "type": "Route" |
| 2 | Ignition uses Route strategy | PASS | "service": "Ignition", "type": "Route" |
| 3 | Konnectivity uses Route strategy | PASS | "service": "Konnectivity", "type": "Route" |
| 4 | OAuthServer uses Route strategy | PASS | "service": "OAuthServer", "type": "Route" |
$ oc get hostedcluster brcox-100054-hc -n clusters -o jsonpath='{.spec.services}' | jq .
[
{
"service": "APIServer",
"servicePublishingStrategy": {
"type": "Route"
}
},
{
"service": "Ignition",
"servicePublishingStrategy": {
"type": "Route"
}
},
{
"service": "Konnectivity",
"servicePublishingStrategy": {
"type": "Route"
}
},
{
"service": "OAuthServer",
"servicePublishingStrategy": {
"type": "Route"
}
}
]