Skip to content

fix(substrate): mirror ActorTemplate CRD defaults to stop infinite recreate loop - #2528

Open
entee28 wants to merge 2 commits into
kagent-dev:mainfrom
entee28:fix/actortemplate-crd-default-drift
Open

fix(substrate): mirror ActorTemplate CRD defaults to stop infinite recreate loop#2528
entee28 wants to merge 2 commits into
kagent-dev:mainfrom
entee28:fix/actortemplate-crd-default-drift

Conversation

@entee28

@entee28 entee28 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Closes #2527

…t spec drift

ActorTemplateSpec.ContainerReadyz.TimeoutSeconds has a non-zero
+kubebuilder:default (30) but is a non-pointer field, so an unset value
here serializes as 0 and permanently disagrees with the apiserver's
defaulted stored value, causing reconcileActorTemplate to treat it as
spec drift and loop deleting/recreating the ActorTemplate forever.

Signed-off-by: Thanh Nguyen <puffle.nnt@gmail.com>
…ate loop

Same class of bug as ContainerReadyz.TimeoutSeconds: SnapshotsConfig.OnResume
is a non-pointer struct with a non-zero +kubebuilder:default (ColdBoot),
so leaving it unset in both the SandboxAgent and AgentHarness ActorTemplate
builders left the desired spec permanently disagreeing with the
apiserver-defaulted stored spec, keeping the delete+recreate loop going
even after the TimeoutSeconds fix alone.

Signed-off-by: Thanh Nguyen <puffle.nnt@gmail.com>
@entee28
entee28 requested a review from a team as a code owner August 24, 2026 07:34
@github-actions github-actions Bot added the bug Something isn't working label Aug 24, 2026
@entee28 entee28 changed the title fix(substrate): fall back to Secret.StringData in resolvePodEnv fix(substrate): mirror ActorTemplate CRD defaults to stop infinite recreate loop Aug 24, 2026
@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Aug 24, 2026
@EItanya

EItanya commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Gonna hold off merging this as this API will be moving into the substrate API server soon: agent-substrate/substrate#1096

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] ActorTemplate stuck in infinite delete/recreate loop due to CRD default drift

2 participants