Repository navigation
v0.13.0
Changed: under CI=true, only gcpemu run takes the CI defaults
Under CI=true, every Instance used to start Ephemeral, log JSON and serve no Web console. Now only
the CLI applies those defaults (#802, ADR 0039), so an emutest Instance in CI logs text and serves
the console, as it does on a laptop. gcpemu run keeps them, but below the config file,
GCPEMU_* variables and flags: ephemeral: false in gcpemu.yaml now beats the CI default, as
does any other key the file names, zero values included. An empty key still counts as absent.
A CI job that parsed an emutest Instance's logs as JSON now gets text.
A VM runtime's own docker push reaches the registry
On Docker Desktop, Colima, OrbStack and Podman machine, docker push runs inside the runtime's VM,
where localhost:4561 is the VM's own loopback, so pushes to $GCPEMU_REGISTRY failed with
connection refused or i/o timeout (#831). An Instance on the host now starts a Registry relay
there in the background: a container in the VM's host network that listens on 127.0.0.1 at the
registry's port and forwards to the registry (ADR 0043). docker push and docker pull with
localhost:4561/LOCATION-docker.pkg.dev/... now work from the host and the VM alike, with no
insecure-registries entry. The docker save and crane push workaround in the v0.12.0 notes is
no longer needed.
- Podman machine sends
localhostregistries HTTPS. Push withpodman push --tls-verify=false,
or add[[registry]]withlocation = "localhost:4561"andinsecure = trueto
/etc/containers/registries.confinside the machine (podman machine ssh).gcpemu doctor
prints that step. - On a VM runtime the Instance now creates its services network, the VM relay and the Registry
relay as soon as it starts, rather than when a Service first needs containers. Start doesn't wait
for them. - If something in the VM already listens on the registry's port, the Instance starts without the
relay and warns;gcpemu doctorreports it with the fix. - A Containerized Instance needs no Registry relay: publish its registry port at the same host port
(-p 127.0.0.1:4561:4561), and the runtime's owndocker pushanddocker pullreach
$GCPEMU_REGISTRYtoo (#835).
emutest reclaims the Instances of interrupted test runs
A test run killed before its cleanup ran (a CI timeout, Ctrl-C, a crashed go test) used to
leave its containers, networks and volumes behind until gcpemu prune. Now the first emutest
Instance a test process starts first reclaims those of earlier runs whose test has ended: every
Ephemeral Instance's temp dir and every WithTestDataDir dir whose owner lock is free (#846,
ADR 0047). Dirs named with WithDataDir are never swept.
GKE restarts a cluster's exited Cluster server
When a RUNNING cluster's Cluster server exits, the GKE Service now logs a warning with the exit code
and the tail of the k3s log, and starts it again on the same volume (#840, ADR 0045). The API
endpoint and the kubeconfig stay the same. If it exits a third time within 10 minutes, the cluster
becomes DEGRADED, its statusMessage holds the log tail, and /_emu/v1/ready fails naming it.
Stopping and starting the Instance brings a DEGRADED cluster back.
Load balancers serve a URL map's customErrorResponsePolicy
On global EXTERNAL_MANAGED load balancers, a backend status listed in the policy of the matched
route rule, path rule, path matcher or URL map is now answered with the page from the policy's
errorService, a backend bucket or backend service, with overrideResponseCode as its status
(#844, FR-LB-012). Cloud CDN caches the error page under the requested URL. If the page can't be
fetched, the client gets the original status, nothing is cached, and the request log says
custom_error_response_fetch_failed (ADR 0048).
New image: gcpemu-echo
Each release now also publishes docker.io/linuxuser586/gcpemu-echo for amd64 and arm64, signed
like the gcpemu image (#862). It's the Conformance suite's test backend: it answers
/status/<code> with that status and every other request with a JSON report of it, keeping only
the headers named in ECHO_HEADERS, and listens on PORT (8080 by default) so Cloud Run can run
it.
What's Changed
- fix: the Instance's container leaves a VPC container network's second-to-last address to the NAT egress proxy (#806) by @linuxuser586 in #812
- test: Kubernetes conformance on Standard and Autopilot clusters shares one Sonobuoy runner (#754) by @linuxuser586 in #814
- test: Kubernetes conformance in the Autopilot acceptance runs Sonobuoy behind the Escape guard (#810) by @linuxuser586 in #816
- fix: console-e2e caches Playwright's browsers and system packages and bounds their install (#817) by @linuxuser586 in #818
- feat: CI defaults belong to the CLI's config loading, not config.Defaults() (#802) by @linuxuser586 in #819
- fix: a stale bucket list from a Linked Instance no longer overwrites a fresher one (#822) by @linuxuser586 in #821
- fix: no internal address takes a Containerized Instance's Self address on a VPC container network (#811) by @linuxuser586 in #824
- fix: the VM relay refreshes its control port address after each network join (#808) by @linuxuser586 in #826
- docs: Compute Engine (VMs) and Cloud Run are v1.0 Products (#827) by @linuxuser586 in #828
- docs: the v0.12.0 notes no longer say Docker Desktop can push to localhost:4561 (#832) by @linuxuser586 in #833
- docs: ADR 0043, VM-side clients reach the registry through a Registry relay (#831) by @linuxuser586 in #836
- docs: ADR 0044, compute records internal forwarding rule addresses (#825) by @linuxuser586 in #838
- feat: a VM runtime's own docker push reaches the registry through a Registry relay (#831) by @linuxuser586 in #837
- docs: the README says where a VM runtime's own docker push still can't reach the registry (#834) by @linuxuser586 in #839
- docs: a Containerized Instance's Published registry port reaches VM-side clients (#835) by @linuxuser586 in #841
- docs: ADR 0045, the Instance restarts an exited Cluster server (#840) by @linuxuser586 in #847
- docs: record a Read-through for pods as out of scope (#845) by @linuxuser586 in #851
- docs: ADR 0046, the Instance CA publishes an empty CRL on the loopback gateway (#843) by @linuxuser586 in #852
- docs: ADR 0047, emutest reclaims Test data dirs whose test has ended (#846) by @linuxuser586 in #853
- feat(lb): serve a URL map's customErrorResponsePolicy (#844) by @linuxuser586 in #856
- docs: a pod that reads a public bucket gets NoSuchBucket; the label is the fix (#850) by @linuxuser586 in #858
- docs: ADR 0049, the Conformance suite records data-plane Exchanges (#855) by @linuxuser586 in #861
- fix: a Containerized Instance's Published registry port reaches VM-side clients (#835) by @linuxuser586 in #857
- feat: the Instance CA publishes an empty CRL on the loopback gateway (#843) by @linuxuser586 in #864
- fix: a test's Persistent Instance removes its networks and volumes when the test ends (#842) by @linuxuser586 in #866
- fix(gke): restart a RUNNING cluster's exited Cluster server; DEGRADED after a crash loop (#840) by @linuxuser586 in #867
- feat: gcpemu-echo, the Conformance suite's test backend, published with releases (#862) by @linuxuser586 in #868
- fix(emutest): a failed test Instance launch reports its error instead of panicking (#863) by @linuxuser586 in #869
- fix(emutest): a failed start returns its error instead of panicking (#865) by @linuxuser586 in #870
- fix(vmrelay): retry silent control-port pings and probe a stalled relay from the VM (#807) by @linuxuser586 in #873
- fix(vmrelay): recreate a VM relay once when the runtime's port forward stalls (#807) by @linuxuser586 in #874
- feat(emutest): reclaim the Instances of test runs that were interrupted (#846) by @linuxuser586 in #876
- test(emutest): cover the rest of a failed start's cleanup (#820) by @linuxuser586 in #878
- fix(test): unit tests that start a Service listen on free ports (#871) by @linuxuser586 in #879
- fix(emutest): a failed start keeps its Test data dir when its resources remain (#877) by @linuxuser586 in #880
- fix(instance): a failed New releases what it took (#872) by @linuxuser586 in #882
- fix: internal forwarding rule addresses are Held addresses on their subnetwork (#825, #823) by @linuxuser586 in #881
- docs: release notes for v0.13.0 by @linuxuser586 in #883
- fix(prerelease): Windows checks build the Sidecar agent by @linuxuser586 in #884
- fix(prerelease): macOS check 9 publishes the API gateway at 4562 by @linuxuser586 in #885
Full Changelog: v0.12.0...v0.13.0