Hello,
we use DPU to transfer our dataproduct from a DEV to a PROD instance.
We found out, that by default the latest (updated) version of a function does not get automatically deployed and one needs to manually redeploy all functions after the update to have the latest version available.
In function-json of the exported ZIP I find the following keys:
"faasFunctionAvailable": false, "faasLatestVersionDeployed": false
Is it possible to automatically deploy the functions while updating if I set one or both keys to true?
Thank you for your help
Update:
Changing these properties with the DPU-json had no effect:
{
"type": "replace",
"jsonPath": "$.faasFunctionAvailable",
"interpretJsonPathReplaceAs": "RAW_JSON",
"searchRegex": "false",
"replace": "true"
},
{
"type": "replace",
"jsonPath": "$.faasLatestVersionDeployed",
"interpretJsonPathReplaceAs": "RAW_JSON",
"searchRegex": "false",
"replace": "true"
},
Maybe someone has a tip for me to avoid annoying manual steps 
Addon:
It is however possible to change the scale-to-zero property using:
{
"type": "replace",
"jsonPath": "$.scaleConfiguration.scaleDown",
"interpretJsonPathReplaceAs": "RAW_JSON",
"searchRegex": "true",
"replace": "false"
},
Update:
By using the action
{
"type": "contextAdaption",
"deployFunction": true
}
together with some condition for functions, it is possible to auto-deploy one or several functions during the update-procedure.
Thank you @stefan.ganser for the tip!
1 Like