Kyma Functions: Secrets and Config map references are wrong when editing via Function UI #10303
Labels
area/serverless
Issues or PRs related to serverless
kind/bug
Categorizes issue or PR as related to a bug.
Milestone
Description
This issue is occurring in Kyma 1.17 (on SCP Trial)
I create a secret ( secretforfunction) and a config map (configforfunction) for a Kyma function. After that I deploy a basic setup for the function via a deployment file referencing the secrets and config map entries
example:
The deployment is successfully executed and the references to the environment variables are set correctly (checked via
kubectl -n mynamespace describe functions)After that I make an adoption of the function code in the UI of Kyma, which triggers a redeployment of the function. However this also has an impact to the environment variables. It seems that the name in the
valueFromsection is just copied from the very first entry, so after the re-deployment the environment section looks like this:=> The first key value per
valueFromtype is now copied for every environment variableExpected result
Either the editing via Kyma UI is not available if a function gets deployed via CLI or the re-deployment does not influence the original setting of the environment variables
Actual result
The environment variables seem to be copied but the key fields are taken from the very first entry per type of
valueFromSteps to reproduce
Troubleshooting
Staying within one way of editing the function (either via CLI or via Kyma UI) is a workaround
The text was updated successfully, but these errors were encountered: