How can we add Labels and Annotations to Traits using KubeVela? #3919
-
Hi I want to add Labels and Annotations to my Traits (Ingress to be specific) Issue DescriptionI'm using Kong as Ingress controller in my K8s cluster. To specify which ingress class to use and also to enable OIDC I need to add Annotations at Ingress file. When using KubeVela, the labels and annotations that I add in my Trait Definition is not applied to the Ingress service created via the same definition.
Is there a way or any support provided by KubeVela to achieve this? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, you can try to use |
Beta Was this translation helpful? Give feedback.
Hi, you can try to use
patchOutputs
in your trait definition to patch annotation to the tratis. Notice that you have to upgrade your KubeVela to 1.4(unreleased yet, or you can use master branch) to use it. You can also refer to this doc: https://kubevela.io/docs/next/platform-engineers/traits/patch-trait#patch-to-traits