Skip to content

Eliminate redundant Describe call and add ErrFunctionNotFound#114

Merged
creydr merged 1 commit intofunctions-dev:mainfrom
creydr:fix/reduce-redundant-describe-calls
Apr 29, 2026
Merged

Eliminate redundant Describe call and add ErrFunctionNotFound#114
creydr merged 1 commit intofunctions-dev:mainfrom
creydr:fix/reduce-redundant-describe-calls

Conversation

@creydr
Copy link
Copy Markdown
Collaborator

@creydr creydr commented Apr 29, 2026

Summary

  • Add funccli.ErrFunctionNotFound sentinel error, returned by Describe when the func CLI reports the function doesn't exist
  • Centralizes the fragile "not found" string matching inside the funccli package instead of the controller
  • Pass the initial Describe result through to checkMiddlewareState, eliminating one redundant Describe CLI roundtrip per reconcile (the post-deploy Describe remains since state has changed)

Move the "not found" error detection from the controller into
funccli.Describe as a typed ErrFunctionNotFound sentinel error.
Pass the initial Describe result through to checkMiddlewareState,
removing one Describe roundtrip per reconcile.
@creydr creydr enabled auto-merge April 29, 2026 09:35
@creydr creydr added this pull request to the merge queue Apr 29, 2026
Merged via the queue into functions-dev:main with commit 01ba549 Apr 29, 2026
11 checks passed
@creydr creydr deleted the fix/reduce-redundant-describe-calls branch April 29, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant