Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to rebuild function without add new function #3

Open
wenchajun opened this issue Oct 18, 2021 · 3 comments
Open

Is it possible to rebuild function without add new function #3

wenchajun opened this issue Oct 18, 2021 · 3 comments
Labels
Milestone

Comments

@wenchajun
Copy link
Member

wenchajun commented Oct 18, 2021

In what area(s)?

Funciton

Describe the feature

Function is a resource that is directly defined and controlled by the user. It is a description of the user’s application, i.e. what raw materials (source code) are used to make the product (application image) and how it will ultimately work (workload, runtime).
In OpenFunction, the Function resource controls the coordination of Builder and Serving in an orderly manner according to the configuration, thus implementing the lifecycle management of user functions.
But we should create a new function after the code is updated.So I have the following requirements:
After the code is updated, there is no need to create a new function, but to rebuild the original function to apply the latest code.

What does it cause this

Function CRD will control Builder and Serving CRD according to the configuration, and reconcile their status. Builder and Serving CRD will also update their status to Function during runtime. Manually changing the state of Builder and Serving will trigger them to re-enter the reconciliation phase.

How to deal with it

Delete the build status in the function to trigger a rebuild

@wenchajun
Copy link
Member Author

/good-first-issue

@tpiperatgod tpiperatgod added the good first issue Good for newcomers label Oct 18, 2021
@wenchajun
Copy link
Member Author

How to do it

For the sake of unity, We need to set up a file here. You can choose a proper name, such as rebuild.go. In this function, you can set builder.Status to null or delete it

@benjaminhuo
Copy link
Member

A github or git event source is needed to receive an event whenever the source code changes and then trigger a function to modify the specified function's build status and then trigger a rebuild

@tpiperatgod tpiperatgod added this to the v0.6.0 milestone Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants