#7693 feat: add deployment_id to app Condition IDL
Pull request opened by
AdilFayyaz
Why are the changes needed?
Per-deployment status mechanisms (e.g. terminal FAILED classification) were keyed on Condition.revision, an optimistic-concurrency counter bumped on every status write — not a stable deployment identity. This caused FAILED to get buried by DEPLOYING and pod-level startup failures to be silently dropped. Conditions need a field that records which deployment they belong to.
What changes were proposed in this pull request?
• Add string deployment_id = 7 to the app Condition message, anchored
on the functional spec hash (the KService
serving.unionai.dev/spec-sha annotation).
• Clarify the revision field comment to state it is an
optimistic-concurrency counter, not a deployment identity.
• Regenerate Go, Python, Rust, and TypeScript bindings.
How was this patch tested?
• buf format + buf lint pass on the changed proto (two pre-existing
failures in plugins/clustered.proto are unrelated).
• Regenerated bindings via buf generate for all four languages; diff
is scoped to the app package.
• go build ./gen/go/flyteidl2/app/... succeeds.
• Verified deployment_id / DeploymentId / deploymentId is present in
the Go, Python, Rust, and TS output.
Setup process
Screenshots
Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
Related PRs
Stack
If you do use
git town
to manage PR Stacks, the stack relevant to this PR
will show below. Otherwise, you can ignore this section.
Docs link
flyteorg/flyte