feature/status-state-machine
main
实现 issue #1 状态机切片的第一小步,为后续 PostgreSQL/OpenBao adapter 提供一致的 status 基础。
Ready
Validating
Pending
Deleting
Reconciling
observedGeneration
本 PR 不连接 PostgreSQL/OpenBao,也不把任何资源标记 Ready。更深 phase 将由后续 adapter 切片在回读外部事实后推进。
make lint
git diff --check
Refs #1
@@ -52,1 +58,3 @@
// TODO(user): your logic here
before := instance.DeepCopy()
if !instance.DeletionTimestamp.IsZero() {
我们是不是应该用策略模式搞个状态机实现类? 直接传当前状态进去跳转对应状态实现代码比这样好读
No dependencies set.
The note is not visible to the blocked user.
概要
实现 issue #1 状态机切片的第一小步,为后续 PostgreSQL/OpenBao adapter 提供一致的 status 基础。
ReadyCondition 与 v1alpha1 Reason 常量ValidatingPendingDeletingReconcilingCondition 携带当前observedGeneration本 PR 不连接 PostgreSQL/OpenBao,也不把任何资源标记 Ready。更深 phase 将由后续 adapter 切片在回读外部事实后推进。
验证
make lint:通过git diff --check:通过Refs #1
@@ -52,1 +58,3 @@// TODO(user): your logic herebefore := instance.DeepCopy()if !instance.DeletionTimestamp.IsZero() {我们是不是应该用策略模式搞个状态机实现类?
直接传当前状态进去跳转对应状态实现代码比这样好读