how to use trait to patch container Env in component when exist #2460
Answered
by
wonderflow
wonderflow
asked this question in
Q&A
-
I want to patch container ENV fields that could be already exist in component properties, how to write the trait to cover it?
|
Beta Was this translation helpful? Give feedback.
Answered by
wonderflow
Oct 13, 2021
Replies: 1 comment
-
patch trait can solve this issue EN: https://kubevela.io/docs/platform-engineers/traits/patch-trait#1-with-patchkeykey_name-annotation |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wonderflow
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
patch trait can solve this issue
EN: https://kubevela.io/docs/platform-engineers/traits/patch-trait#1-with-patchkeykey_name-annotation
CN Docs: https://kubevela.io/zh/docs/platform-engineers/traits/patch-trait#1-%E4%BD%BF%E7%94%A8-patchkeykey_name-%E6%B3%A8%E8%A7%A3