Release notes
One entry per version, newest first, answering one question: what a cluster already running the version before it has to change before it moves.
This is not a commit log. What a release publishes and how to verify it before you install it is Releases and provenance. What the API holds to between versions, and what it does not, is API compatibility.
Before v1 there are no deprecations: a field that has to go, goes, in the
release that says so, and this is where it is said. A version that asks
nothing of you says so in as many words, rather than leaving you to read it
out of silence.
Before you upgrade. Nothing has to change. The manager image is new, so
keep --force-conflicts on the upgrade.
The chart’s ServiceMonitor now selects the metrics Service. In 0.2.4 it
selected Services by a label only the manager Pods carry, so
monitoring.serviceMonitor.enabled gave Prometheus no target and every alert
rule read an absent series. The metrics Service now carries
app.kubernetes.io/component: metrics, and the ServiceMonitor selects that.
A ServiceMonitor you wrote yourself to work around it keeps working; remove it
once the chart’s own one is scraped, so the managers are not scraped twice.
A failed or partial migration run now names the migration it stopped in, in
status.lastRun.message and in its MigrationRunFinished Event: its version,
the description Ptah reads from its file name, and for a partial run how many
of its statements it committed. The message still carries nothing the
database said.
pkg/planread is new. It reads a stored schema plan through the same checks
kubectl ptah plan makes, for a Go program that shows plans, such as the
optional console in stokaro/ptah-console. Nothing in the operator’s own
behavior changes with it.
Before you upgrade. Nothing has to change. This upgrade swaps the manager
image as well, and --force-conflicts stays on the command.
Schemas and migrations that share an interval no longer refresh at the same moment. Each Resolve set the next refresh exactly one interval after it started, so resources created together stayed in step for as long as they lived, and every interval began with the whole fleet’s API traffic at once. Each of them now takes an evenly spaced slot in its interval, in UID order, and a refresh that started well past its slot sets the next one later onto it. The next refresh is never earlier than one interval after the last; aligning can lengthen one or two cycles by at most half an interval, after a resource joins or leaves the fleet or drifts from its slot. A resource alone in its interval keeps the plain cadence.
Before you upgrade. Nothing has to change. The manager image is new again,
so keep --force-conflicts on the upgrade.
Replacing every manager at once while an approval arrives no longer blocks the migration or schema. Deleting all manager Pods removes the endpoints of the manager’s own Job-write webhook before either process is told to stop, so a leader still dispatching had its Job create refused and left an approved Apply that only a person could acknowledge. A create the API server refused before storing it proves no Job exists, so the dispatch is now withdrawn and made again by the next leader under the same approval. A create whose outcome is uncertain, such as a timeout, still blocks for a person, as before.
Before you upgrade. Nothing has to change. As from 0.2.0, the manager image
changes, so the upgrade needs --force-conflicts.
A manager that is stopping no longer starts a Job, and one whose dispatch had already begun finishes creating it. Before, an approval that arrived while the managers were being replaced could be taken by the stopping manager, whose interrupted create left an outcome nobody established, and a migration then blocked until a person acknowledged the run. The manager now finishes stopping within 20 seconds, inside the Pod’s grace period, so it releases its leader Lease before it is killed and the next manager takes over at once.
Before you upgrade. Nothing has to change. The upgrade replaces the
manager image, so run it as
Upgrade to a new release says, with
--force-conflicts. One behavior changes:
spec.interval now runs from the start of one refresh to the start of the
next, as the API describes it. 0.2.0 waited one interval after each refresh
finished, so the refresh’s own Jobs lengthened every period.
At the same interval a converged resource now refreshes more often. With the
default 10m and a refresh of about a minute, that is about one Job in ten more.
Raise spec.interval if that load matters. A published plan still waits a full
interval for its approval, and a refresh that takes longer than its interval
waits one interval after it ends rather than starting the next at once.
The manager’s leader Lease now lasts 60 seconds and is renewed within 45, up from 15 and 10, and a manager that stops releases it. An API server stall shorter than 45 seconds no longer restarts the leader, and a restart or an upgrade hands over without waiting out the Lease. A manager that dies without stopping is replaced after about a minute instead of 15 seconds.
Before you upgrade. There is no earlier published release to upgrade from.
0.2.0 is the first published release. Its images, chart and clients were qualified on their own digests across Kubernetes 1.35, 1.36 and 1.37 on amd64 and arm64, and published as an immutable release; see Releases and provenance to verify them.
Installing it is Install, and the database privileges it needs before the first schema converges are Databases and privileges.