Skip to content

A few more changes to resource defaults - #1674

Merged
Zoe Zhao (zoez7) merged 3 commits into
agent-substrate:mainfrom
juli4n:defaults
Sep 21, 2026
Merged

Zoe Zhao (zoez7) merged 3 commits into
agent-substrate:mainfrom
juli4n:defaults

Conversation

@juli4n

Copy link
Copy Markdown
Collaborator
  • (Prefactor): Extract defaulting logic into cmd/ateapi/internal/defaults.
  • When reading resources from DB, perform a default backfill.
  • Change defaults for readyz probes.

Part of #1593

We need to backfill defaults on read from the store, but controlapi
already imports store, so store can't import controlapi's defaulting
logic without a cycle. Move it to its own package so both sides can
call it.
This is to make sure all resources are properly defaulted, even
the ones that have been created before a new field with a default
was introduced.
Make path default to `/` instead of `/readyz`.
Also remove the defaulting logic in ateom as the caller (ate-apiserver and atelet)
will provide defaulted values now.
@juli4n
Julian Gutierrez Oschmann (juli4n) marked this pull request as ready for review September 16, 2026 16:50
@bowei Bowei Du (bowei) added kind/cleanup Small fixes that are not bugs, for example a typo in a code comment area/api-machinery area/api User-facing API changes labels Sep 17, 2026
@zoez7
Zoe Zhao (zoez7) added this pull request to the merge queue Sep 20, 2026
Merged via the queue into agent-substrate:main with commit bb0effe Sep 21, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api User-facing API changes area/api-machinery kind/cleanup Small fixes that are not bugs, for example a typo in a code comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants