feat: improve status on team operator resources#94
Conversation
|
Claude finished @ian-flores's task —— View job Review: feat: improve status on team operator resourcesOverall this is a well-structured change that follows Kubernetes conventions for conditions-based status reporting. The Critical:
|
Tested on ganso01-stagingDeployed adhoc image
|
|
Nice! It looks like the comment |
Summary
CommonProductStatustype withConditions,ObservedGeneration, andVersionfields, embedded in all status structs including PostgresDatabaseinternal/statushelper package withSetReady(),SetProgressing(),IsReady(),ExtractVersion()and reason constants (ReasonReconcileComplete,ReasonDeploymentReady/NotReady,ReasonStatefulSetReady/NotReady,ReasonAllComponentsReady,ReasonComponentsNotReady,ReasonDatabaseReady)Progressingcondition correctly reflects rollout state:Trueduring active rollouts,FalsewithReasonReconcileCompletewhen doneConnectReady,WorkbenchReady, etc.) andOwns()watches on child CRsReady,Version, andAgeprintcolumns to all CRDs forkubectl getoutputStatus().Update()toStatus().Patch()withMergeFromto avoid conflictsReadybool field as+optionalfor patch compatibility; value now derived from theReadyconditionWithStatusSubresourcefor all CRD typesExtractVersionhandles registry ports (e.g.,localhost:5000/image:v1) and digest references (image:tag@sha256:...)Closes #25
Test plan
just buildpassesjust mgenerateregenerates CRDs and deepcopy without errorsjust helm-generatekeeps Helm chart in syncgo fmtproduces no changeskubectl get connectsshows READY/VERSION/AGE columns