You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "squakez (via GitHub)" <gi...@apache.org> on 2024/02/27 14:10:12 UTC
[PR] chore: use constants for config types [camel-k]
squakez opened a new pull request, #5189:
URL: https://github.com/apache/camel-k/pull/5189
<!-- Description -->
Cleaning PR to include some constant instead of hardcoded values.
<!--
Enter your extended release note in the below block. If the PR requires
additional action from users switching to the new release, include the string
"action required". If no release note is required, write "NONE".
You can (optionally) mark this PR with labels "kind/bug" or "kind/feature" to make sure
the text is added to the right section of the release notes.
-->
**Release Note**
```release-note
chore: use constants for config types
```
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] chore: use constants for config types [camel-k]
Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on PR #5189:
URL: https://github.com/apache/camel-k/pull/5189#issuecomment-1966638930
Part of #5090 - fyi @lburgazzoli
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] chore: use constants for config types [camel-k]
Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez merged PR #5189:
URL: https://github.com/apache/camel-k/pull/5189
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] chore: use constants for config types [camel-k]
Posted by "lburgazzoli (via GitHub)" <gi...@apache.org>.
lburgazzoli commented on code in PR #5189:
URL: https://github.com/apache/camel-k/pull/5189#discussion_r1504313172
##########
pkg/trait/camel.go:
##########
@@ -33,6 +33,15 @@ import (
"github.com/apache/camel-k/v2/pkg/util/property"
)
+const (
+ camelSourceLanguageAnnotation = "camel.apache.org/source.language"
+ camelSourceLoaderAnnotation = "camel.apache.org/source.loader"
+ camelSourceNameAnnotation = "camel.apache.org/source.name"
+ camelSourceCompressionAnnotation = "camel.apache.org/source.compression"
Review Comment:
since such annotations are spreading across multiple traits, should they be on the `trait_types.go `file ? eventually you can also drop the `camel` prefix
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org