Function controller overwrites function's deployment's 3rd party annotations #1345
Labels
kind/bug
Categorizes issue or PR as related to a bug.
priority/critical-urgent
Highest priority. Must be actively worked on as someone's top priority right now.
Milestone
Description
Function controller is propagating annotations only from function spec into function's deployment object (
spec.template.metadata.annotations.
). It ignores any 3rd party annotationsExpected result
In case a 3rd party tool is adding annotations to workloads (for example to enforce workload restart to bump istio container version) function controller should merge existing annotations with user defined ones via function API.
Actual result
In case a 3rd party tool is adding annotations to workloads (for example to enforce workload restart to bump istio container version) function controller is not merging annotations coming from istio and user. It reconciles function deployment and keeps only user defined annotations originating from function cr
spec.annotaions
Steps to reproduce
spec.template.metadata.annotation
Attachments
here is how istio uses annotations to enforce workload restart.
The text was updated successfully, but these errors were encountered: