How to update an existing application when a the definition of a trait is updated #1810
-
Hi, I am currently exploring Kubevela, and when I update an existing trait configuration (defined with cue), updates are not propagated to applications using this trait. Is there a way to automatically update the applications when an existing trait is modified? The workaround I use is to delete the application and to apply it again, but it is a bit silly. I'm not totally comfortable with how Kubevela manage applications and updates and I was not able to find this information in the documentation. Thank you for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
When change definition, you will have new versions, you can specify definition revision in application https://kubevela.io/docs/platform-engineers/definition-and-templates#specify-definition-revision-in-application |
Beta Was this translation helpful? Give feedback.
-
Could you provide us with the status in the Application? If the status field of Application is normal, please provide the relevant yaml file to reproduce this problem, I also hope you can provide the version of KubeVela. |
Beta Was this translation helpful? Give feedback.
-
I finally found where the error came from. There is the following event when applying the application with a specific revision on the ingress-tls trait:
The following labels are populated when the ingress resource is created:
Notice the trait.oam.dev/type: ingress-tls label. If I specify a revision for a trait, the value will be updated with the "@" value which does not seem to be allow by Kubernetes. I also noticed that there is no this issue for Components. Do you support using revision for traits? Is there a way to remove the label which is automatically injected (by kubevela i guess)? Thank you! |
Beta Was this translation helpful? Give feedback.
@wonderflow @yangsoon
I finally found where the error came from. There is the following event when applying the application with a specific revision on the ingress-tls trait:
The following labels are populated when the ingres…