Skip to content

How can we add Labels and Annotations to Traits using KubeVela? #3919

Answered by FogDong
MaharaJothi asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MaharaJothi
Comment options

Answer selected by MaharaJothi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants