Skip to content

Commit ff52aeb

Browse files
authored
chore(etcd-operator): bump to v0.5.6 (#4425)
## What this PR does Bumps the vendored `etcd-operator` from **v0.5.5** to **[v0.5.6](https://github.com/cozystack/etcd-operator/releases/tag/v0.5.6)**. v0.5.6 is a controller-only bug-fix release; the two changes are: - **Terminal-phase `EtcdMember` Pods are replaced** ([etcd-operator#370](cozystack/etcd-operator#370)). A graceful node shutdown SIGTERMs etcd, which exits 0, and the kubelet parks the Pod in `Succeeded` without deleting it. The operator manages bare Pods and only recreated on `NotFound`, so after a whole-cluster reboot every member stayed down until the Pods were deleted by hand. The reconciler now deletes an owned Pod in a terminal phase and lets the next pass recreate it against the same PVC (or, for memory-backed members, through the existing pod-loss re-add path). - **`EtcdCluster` status stays truthful while etcd is unreachable** ([etcd-operator#369](cozystack/etcd-operator#369)). On a converged cluster the learner-promote and auth reconcile paths returned their transient requeue before `updateStatus`, so `Available`/`Degraded` and `readyMembers` froze at the last healthy value and a fully down cluster kept advertising `Available=True`. The status write now always happens, with the requeue carried through it. Package changes are pin-only: - **`etcd-operator`**: `appVersion` → v0.5.6 (image tag derives from it), `ETCD_OPERATOR_REF` → v0.5.6, `tests/deployment_test.yaml` image pins → v0.5.6. - **`etcd-operator-crds`**: `ETCD_OPERATOR_REF` → v0.5.6. `make update` at the new ref produces an empty diff: the five CRDs are byte-identical to v0.5.5, and `charts/etcd-operator/files/manager-role-rules.yaml` did not change, so `templates/rbac.yaml` is untouched. Verified locally: `helm unittest` 18/18 (`etcd-operator`) and 1/1 (`etcd-operator-crds`), `helm lint` clean on both, `helm template` renders `ghcr.io/cozystack/etcd-operator:v0.5.6`, and that tag resolves in ghcr.io. ### Screenshots n/a — no UI changes. ### Downstream repositories Walked the trigger map against the diff. The change is confined to `packages/system/etcd-operator{,-crds}` and touches only version pins: etcd-operator is a system component (not a `packages/apps`/`packages/extra` package the website and TF provider track), no CRD, schema, values, `hack/`, installer or platform values changed. - [x] No downstream repository is affected by this change ### Release note ```release-note chore(etcd-operator): bump to v0.5.6, which replaces EtcdMember Pods left in a terminal phase after a node shutdown and keeps EtcdCluster Available/Degraded conditions truthful while etcd is unreachable ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Updates** * Updated the etcd operator to version 0.5.6. This version is used consistently across the operator deployment and its associated custom resource definitions. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2 parents 45f5698 + e60fbc3 commit ff52aeb

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎packages/system/etcd-operator-crds/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ test:
77
helm unittest .
88

99
# Pinned ref of github.com/cozystack/etcd-operator to vendor CRDs from.
10-
ETCD_OPERATOR_REF ?= v0.5.5
10+
ETCD_OPERATOR_REF ?= v0.5.6
1111

1212
# controller-gen writes the CRDs to charts/etcd-operator/crd-bases/ upstream (there
1313
# is no config/crd kustomization). Vendor each verbatim and stamp

‎packages/system/etcd-operator/Chart.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ name: cozy-etcd-operator
33
description: Cozystack etcd-operator (etcd-operator.cozystack.io/v1alpha2) controller-manager
44
type: application
55
version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process
6-
appVersion: v0.5.5
6+
appVersion: v0.5.6

‎packages/system/etcd-operator/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ include ../../../hack/package.mk
88
# domain, VPA), so only the RBAC role is re-vendored; refresh templates/rbac.yaml
99
# by hand from charts/etcd-operator/files/manager-role-rules.yaml at this ref.
1010
# CRDs live in the sibling etcd-operator-crds package.
11-
ETCD_OPERATOR_REF ?= v0.5.5
11+
ETCD_OPERATOR_REF ?= v0.5.6
1212

1313
update:
1414
@echo "etcd-operator is a cozystack-authored chart; refresh templates/rbac.yaml"

‎packages/system/etcd-operator/tests/deployment_test.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ tests:
2020
asserts:
2121
- equal:
2222
path: spec.template.spec.containers[0].image
23-
value: ghcr.io/cozystack/etcd-operator:v0.5.5
23+
value: ghcr.io/cozystack/etcd-operator:v0.5.6
2424
- contains:
2525
path: spec.template.spec.containers[0].env
2626
content:
2727
name: OPERATOR_IMAGE
28-
value: ghcr.io/cozystack/etcd-operator:v0.5.5
28+
value: ghcr.io/cozystack/etcd-operator:v0.5.6
2929
any: true
3030

3131
- it: "image.tag overrides the appVersion default for both the container and the agent env"

0 commit comments

Comments
 (0)