Repository navigation
v0.16.0
Changed: Cloud Storage refuses uploads outside their allowed size
- An XML API
PUTwithx-goog-content-length-range: MIN,MAXwhose body is outside that inclusive
range now fails with400 EntityTooLargeor400 EntityTooSmall(#1175). This applies whether
the request is signed, uses an HMACAuthorizationheader, or is unsigned. Before, the object was
stored and the request got200. A malformed header is ignored. So is the header on copies and on
resumable or multipart part uploads. - A POST policy upload outside the policy's
content-length-rangeis now refused before anything is
stored (#1185). Before, the object was stored and then removed again. In a versioned bucket, that
cleanup also deleted the live version. A file that is too small now getsEntityTooSmall, as in
Cloud Storage. Before, it gotEntityTooLarge.
Clients that sent a range their own uploads broke now get the 400 that Cloud Storage returns.
Changed: a GKE cluster on a Retired version is moved off it when brought up
When an Instance starts, or restores a State snapshot, a control plane or node pool on a Retired
version (one the emulator no longer ships) is upgraded before the cluster comes up (#1166,
ADR 0085). Before, such a cluster went to ERROR with unknown version. The control plane moves to
the newest patch of the oldest supported minor above its version. It never moves down. Each node
pool moves the same way, but never past the control plane. autoUpgrade: false and maintenance
exclusions don't prevent the move. The move is recorded as DONE UPGRADE_MASTER and
UPGRADE_NODES Operations and logged as a warning. The moved pools' nodes are recreated on the new
image.
No version is retired in this release, so no cluster moves yet. A later release that drops GKE
versions (#895) will move clusters on them.
Changed: host clients reach GKE pods from the Host address
A connection from the host to a cluster Service at its Loopback alias now reaches the pod from the
subnetwork's Host address (#1177, ADR 0088). A policy that admits the host, such as Istio
remoteIpBlocks: [<Host address>/32] or a NetworkPolicy ipBlock, now matches it. Before, the pod
saw a node or bridge address. The emulator picks the endpoint itself (ready endpoints first, then
serving terminating ones, with ClientIP session affinity), so internalTrafficPolicy and topology
hints don't apply to host clients.
A node whose kernel can't send from the Host address still connects, from its own address.
gcpemu doctor warns about such nodes. Nodes created by an earlier release keep working through the
ClusterIP until they are recreated.
Changed: gcpemu reset also resets the clock and empties the kubeconfigs
gcpemu resetnow sets the Emulator clock back to its base: real time, or a Deterministic
Instance's own clock (#1172, ADR 0087). A test suite that advanced the clock and expected it to
stay ahead after a reset will see it go back.- A Reset, and so a State snapshot restore, now empties the Admin kubeconfig and the LAN kubeconfig
(#1170). Before, they still listed the destroyed clusters. After a restore, they fill again as the
restored clusters come up.
Changed: gcpemu ca install replaces the Instance's earlier CAs
On macOS (System keychain) and Windows (user Root store), ca install now removes earlier roots
with the same Instance name before it adds the current CA (#1174). These roots are left behind by a
wiped data directory or a CA rotation. ca uninstall removes all of them. The plan lists each
delete before it asks for confirmation. On Windows, each delete adds a confirmation dialog. Roots of
other Instances are never touched. The match is on the exact name, so x doesn't match x2.
Firefox and Chrome NSS databases on Linux get the same cleanup.
gcpemu time show and gcpemu time reset
gcpemu time show prints the Emulator clock and its offset without moving it. gcpemu time reset
sets the clock back to its base (#1172, ADR 0087). It never goes earlier than the base. Setting the
clock back only moves it. Deletions, expiries and retention that an advance set off stay done. Use a
State snapshot restore to undo them. /_emu/v1/time gains GET and POST /reset, and the
/advance response gains offset.
Other fixes
gcpemu statusmarks Resolver routes that are gone from the host's resolver, and says how to fix
them (#1176).status --jsongainsresolverRoutes.missing.- A Google-managed certificate is served before it reads
ACTIVE, so a client that connects as soon
as it readsACTIVEno longer getstls: internal error(#1184). gcpemu env's help saysKUBECONFIGdoesn't promise that a cluster runs (#1168, ADR 0086).- When a left-behind
endpoints.jsonnames a port held by a server that speaks first, such as
sshd,gcpemu startandca rotatenow go ahead every time. Before, they sometimes refused
and asked for the file to be removed (#1162).
What's Changed
- test(gke): TestRecoverRestoresOtherError holds the restore open through a hook (#1161) by @linuxuser586 in #1163
- fix(cli): a checkConn's write reports the read's verdict (#1162) by @linuxuser586 in #1164
- docs: Product image terms and ADR 0084 (#895) by @linuxuser586 in #1167
- docs: Retired version term and ADR 0085 (#1166) by @linuxuser586 in #1169
- docs: Admin kubeconfig wording and ADR 0086 (#1168) by @linuxuser586 in #1171
- test(sql): Operation lock tests hold the first Operation open through a hook (#1156) by @linuxuser586 in #1173
- fix(cli): ca install replaces the Instance's earlier CAs (#1174) by @linuxuser586 in #1178
- docs(cli): env's help says KUBECONFIG promises no cluster (#1168) by @linuxuser586 in #1179
- feat(gke): move clusters off retired versions when brought up (#1166) by @linuxuser586 in #1180
- fix(gke): reset empties the Admin and LAN kubeconfigs (#1170) by @linuxuser586 in #1182
- feat(cli): time show and time reset; reset clears the clock offset (#1172) by @linuxuser586 in #1181
- fix(cli): status marks Resolver routes gone from the host (#1176) by @linuxuser586 in #1183
- fix(gcs): refuse a PUT whose body is outside x-goog-content-length-range (#1175) by @linuxuser586 in #1187
- fix(lb): serve a managed certificate before it reads ACTIVE (#1184) by @linuxuser586 in #1189
- feat(gke): host clients reach pods from the Host address (#1177) by @linuxuser586 in #1188
- fix(gcs): refuse a POST policy upload outside content-length-range before storing it (#1185) by @linuxuser586 in #1190
- docs: release notes for v0.16.0 by @linuxuser586 in #1191
Full Changelog: v0.15.0...v0.16.0