hxxxi-malog commented on code in PR #6807:
URL: https://github.com/apache/camel-k/pull/6807#discussion_r4006988890


##########
pkg/trait/util.go:
##########
@@ -330,19 +330,28 @@ func ExtractAndMaybeDeleteTraits(c client.Client, 
annotations map[string]string,
        traitsPlainParams := []string{}
        for k, v := range annotations {
                //nolint:staticcheck
-               if strings.HasPrefix(k, v1.TraitAnnotationPrefix) {

Review Comment:
   Sorry, I over-engineered this. The convention here is simply to keep the 
deprecated API fields and let removed traits behave like any other unknown 
trait. I've reverted the special handling along with the related tests and the 
WARN log.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to