lburgazzoli commented on code in PR #5186:
URL: https://github.com/apache/camel-k/pull/5186#discussion_r1503796994


##########
pkg/trait/camel.go:
##########
@@ -200,10 +207,10 @@ func (t *camelTrait) computeConfigMaps(e *Environment) 
[]ctrl.Object {
                                        v1.IntegrationLabel: e.Integration.Name,
                                },
                                Annotations: map[string]string{
-                                       "camel.apache.org/source.language":    
string(s.InferLanguage()),
-                                       "camel.apache.org/source.loader":      
s.Loader,
-                                       "camel.apache.org/source.name":        
s.Name,
-                                       "camel.apache.org/source.compression": 
strconv.FormatBool(s.Compression),
+                                       camelSourceLanguageAnnotation:    
string(s.InferLanguage()),
+                                       camelSourceLoaderAnnotation:      
s.Loader,
+                                       camelSourceNameAnnotation:        
s.Name,
+                                       camelSourceCompressionAnnotation: 
strconv.FormatBool(s.Compression),

Review Comment:
   although replacing string with consts is desirable, since it does not seems 
to be strictly related with goal of PR, can this be moved to a dedicate commit 
at least ? 



-- 
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