Repository navigation
api | docs: create cron services without a detected port or domain - #43
Merged
bbedward merged 1 commit intoOct 19, 2026
Merged
Conversation
A service created with cron_schedule keeps the ports detected from its source as metadata only, so it no longer gets a port, a public flag and a generated domain that nothing answers on. UNB-401
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Creating a service with
cron_scheduleand noportsstill gave it the port detected from its source (DockerfileEXPOSE, railpack analysis or image metadata). InCreateServicethat port makesresolveIsPublicanswer true, andgenerateWildcardHostthen adds a<name>.apps.<wildcard>domain. The operator never serves a scheduled service (removeExposureinservice_controller.go, androutedHTTPHostsskips it on gateway clusters). So the domain only claimed the host, showed in the UI and fedUNBIND_URL_PUBLIC. Seen on banano for kalium-prices and bc-scan-failed-cleaner.Fix: when a schedule is set and the caller sent no ports, the detected ports stay in
detected_portsmetadata only. The service starts with no port, so it is private and gets no generated domain.Kept as is, for compatibility:
UpdateGitSourceonly writes metadata).detected_portsstored for databases after node ports are allocated.The issue says replicas and ports are already refused on cron services. They aren't: the only cron check is the restart refusal in
restart.go.Docs: one line in Cron jobs.
Tests:
TestSkipsDetectedPortsForCroncovers the condition, plusresolveIsPublicgiving no domain without a port. Not run against a live cluster.fixes UNB-401