Description
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