-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add reported name field to Source, deprecate the odigos.io/reported-name annotation #2298
Merged
Merged
Changes from 7 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
adefb72
Add reported name field to Source, deprecate the odigos.io/reported-n…
RonFed 3f53341
Add migration to the reported name annotation
RonFed 7f9035a
update e2e tests
RonFed ca65ba3
Improve error message
RonFed 92cf980
change pods webhook to get service name from the sources
RonFed e52dcc7
update api docs
RonFed c3f11bf
update sources test generations
RonFed df8de83
Set default service name in pods webhook
RonFed e6fb223
Update source e2e test
RonFed c36ef9b
Update workload-lifecycle test
RonFed de79e00
mark reported name as optional
RonFed a1ed0fb
Add case for source-webhooks test
RonFed 5552e64
Update cli-upgrade test
RonFed 37ab074
Merge branch 'main' into reported_name_to_source
RonFed d18867c
Update instrumentor/sources_webhooks.go
RonFed 345480f
Rename ReportedName to OtelServiceName
RonFed 3207db5
Add logging for migration from reported name annotation
RonFed d273ec7
Simplify source controller under instrumentationconfig
RonFed 3a01f46
address code review comments
RonFed b549dff
Update docs
RonFed b62f750
Merge branch 'main' into reported_name_to_source
RonFed cdcc685
update Source update docs
RonFed 57bf3a9
Update Source update doc
RonFed ff263b6
Migrate from annotation only if it had a non empty value
RonFed c81c94b
remove unused scheme
RonFed e46f8ce
Merge branch 'main' into reported_name_to_source
RonFed fa34c20
Merge branch 'main' into reported_name_to_source
RonFed File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
api/generated/odigos/applyconfiguration/odigos/v1alpha1/sourcespec.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs
// +kubebuilder:validation:Optional
(generated docs show it as required)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we have
Required
for all of our fields and// +kubebuilder:validation:Optional
is not doing anything.Adding
// +optional
did the trick, which seems to be what thegenref
looks forI can do a follow up PR adding it to all our fields. (and maybe remove
// +kubebuilder:validation:Optional
which seems to not do anything?)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, weird. I think that's a bug in the genref, they should definitely be parsing
+kubebuilder
tags tooA follow up to add
// +optional
would be good. I think it will only affect the docs, because the controller-gen scripts should be respecting either tag. Meaning, I think our CRDs are accurate