Repository navigation
Conversation
The SNC cluster endpoints are hardcoded to nip.io on the mapt side (console URL, kubeconfig API server rewrite) and on the bundle side (ocp-custom-domain service). Add a --dns-suffix flag to `aws openshift-snc create` and `ibmcloud openshift-snc create` that overrides the default. When set, the suffix is written to /opt/crc/dns-suffix on the instance via the cloud-config, where it is picked up by ocp-custom-domain (requires a bundle including crc-org/snc#1266). The generated kubeconfig and the reported console URL follow the same suffix. When the flag is empty the behaviour is unchanged: no file is written and nip.io is used everywhere, so older bundles keep working.
|
Warning Review limit reachedThis review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry. Next included review available in 39 minutes. View limit details
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Reject --dns-suffix when the requested OpenShift version runs a bundle that does not read /opt/crc/dns-suffix: without the check the file is silently ignored, the cluster endpoints stay on nip.io and the generated kubeconfig points to a non-existent domain. crc-org/snc#1266 was merged to master and backported to the release-4.22 and release-5.0 bundle branches, so the suffix requires OpenShift >= 4.22 or 5.x. The check also validates the suffix itself (bare DNS label, no whitespace or path separators).
|
Added a version guard: |
Summary
--dns-suffixflag tomapt aws openshift-snc createandmapt ibmcloud openshift-snc createto replace the hardcodednip.ioused for the cluster endpoints/opt/crc/dns-suffixon the instance through the cloud-config, where theocp-custom-domainservice picks it up — this is the mechanism introduced by ocp-custom-domain: Make DNS suffix configurable crc-org/snc#1266nip.iois used everywhere, so bundles predating ocp-custom-domain: Make DNS suffix configurable crc-org/snc#1266 keep workingFollows up on crc-org/snc#1265 / crc-org/snc#1266 on the bundle side.
Test plan
go build ./...go veton the touched packagesdns-suffixfile when no suffix is set, and with the correct content when one is set (both AWS and IBM Cloud templates)--dns-suffix sslip.ioand verify console, OAuth, API and registry endpoints use the suffix, and that the kubeconfig works