• v0.5.0 b0a431f2a4

    v0.5.0 — a recreated TerdutServer adopts the credential it left behind
    CI / chart (push) Successful in 2s
    CI / security (push) Successful in 53s
    Release / chart (push) Successful in 3s
    CI / test (push) Successful in 2m19s
    Release / test (push) Successful in 1m41s
    Release / image (push) Successful in 6m30s
    Release / scan-image (push) Successful in 4s

    niklas released this 2026-10-08 19:13:14 +00:00 | 15 commits to main since this release

    Deleting a TerdutServer used to remove the operator's credential Secret but
    never touch the database. A TerdutServer recreated with the same name then
    found a server that was already bootstrapped and no key for it, stopped at
    Ready: False / BootstrapStateLost, and its message advised deleting and
    recreating, which cannot fix it. This is how the terdut-demo install got
    stuck: Helm's cleanupOnFail deleted its TerdutServer after a failed upgrade.

    The instance credential is now kept when a TerdutServer is deleted, and
    adopted when one is recreated. New field spec.credentials.deletionPolicy:
    Retain (the default) keeps the Secret, Delete removes it as before. Before
    bootstrapping, reconcile looks for the retained Secret and asks the server
    for the operator's own service account with its token. If the server accepts
    it, the TerdutServer adopts it and skips the bootstrap. If the server rejects
    it (a database reset since), the Secret is ignored and replaced by a normal
    first-install bootstrap. The bootstrap checkpoint is always removed. The Helm
    chart passes the setting through as terdutServer.credentials.deletionPolicy.

    BootstrapStateLost remains the answer when the server is bootstrapped and no
    credential it accepts survives, but its message now names the Secret to
    restore and says that recreating does not clear the database. DESIGN.md §6
    says the same. It used to claim a fresh create starts clean, which was only
    true when the database went with it.

    Behaviour change to know about: the credential Secret of a TerdutServer that
    is deleted for good now stays in the operator's namespace. It is inert,
    because adoption asks the server to accept the token first, but delete it by
    hand, or set deletionPolicy: Delete, if it should not outlive the object. An
    existing TerdutServer without the field gets Retain.

    Needs terdut-server v0.36.0 or newer, unchanged. The CRD gains the optional
    credentials field, which the chart's CRD template carries; nothing else in the
    CRDs changed, and no existing field was removed or renamed. The demo in
    examples/demo now runs terdut-server v0.43.0 with alerts from two clusters
    (already merged, #6). Checked on a kind cluster against terdut-server v0.43.0:
    deleting a TerdutServer kept its Secret, and recreating it reached Ready with
    the same credential and both TerdutTeams Ready with their original ids.

    Downloads