fix(cli)!: stop using the default instance for a missing container (#75)

status no longer probes the default instance for a named container with no known
endpoint, and env, services, snapshot and az setup exit 1 with the next step
instead of acting on it. wait keeps looking for the container until --timeout, and
doctor and version still run. A profile's port is used before its container
starts, and an endpoint from --endpoint, FLOCI_ENDPOINT or another host beats a
local container's published port.

BREAKING CHANGE: in status -o json, endpoint is null when the selected container
has no known endpoint. env, services, snapshot and az setup exit 1 in that case,
where they used to use the default endpoint. An --endpoint or FLOCI_ENDPOINT on
the default port is now honoured even when a local container publishes another
port.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
This commit is contained in:
Hector Ventura authored and GitHub committed 2026-11-04 17:32:42 -06:00
1 parent 882c0ea7be
commit 587860da0f
17 files changed
+528 -57

No files matched your search

@@ -54,7 +54,7 @@ public class GcpEnvCommand implements Callable<Integer> {
printer.error(ShellExport.unsupported(shell));
return 2;
}
String effectiveEndpoint = global.resolvedEndpoint(docker);
String effectiveEndpoint = global.resolvedEndpoint(docker, printer::warn);
String host = extractHost(effectiveEndpoint);
int port = extractPort(effectiveEndpoint);
String hostPort = host + ":" + port;