Skip to content
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

fix(traits): annotations refactoring #5637

Merged
merged 2 commits into from
Jun 17, 2024
Merged

fix(traits): annotations refactoring #5637

merged 2 commits into from
Jun 17, 2024

Conversation

squakez
Copy link
Contributor

@squakez squakez commented Jun 14, 2024

This PR is fixing #5620 and it's adding the proper support to compare traits coming from the spec with specs coming from the annotations. With the PR, the Pipe is in charge to transform the annotations into .spec.traits directly, in order to let the Integration to know what to do with them (ie, transferring to the Kit only those that it knows they must be transferred).

Beside that, I've introduced a deprecation notice for supporting trait annotations in Integration, IntegrationKit and IntegrationPlatform as it does not make sense to support both configurations. They will be removed in future versions.

As specified in the code comment, the introduction of certain signature functions change is required to properly support the feature (although deprecated) and will be changed back when we will remove the support for this feature.

Closes #5620

Release Note

fix(traits): annotations refactoring 

The Pipe transform the annotations into .integration.spec.traits instead of transferring to Integration annotations.
This should bring consistency as the Integration would manage the copy to IntegrationKit according its internal logic which is already available.

Closes apache#5620
The previous development was flawed, as it did not do the proper comparison with the configuration coming from annotation to the configuration coming from trait spec.
This commit is supporting the comparison in a proper manner, however, we're deprecating the feature from other resources which are not Pipe as it does not make sense to support.

Ref apache#5620
@squakez squakez merged commit ca5239b into apache:main Jun 17, 2024
12 of 13 checks passed
@squakez squakez deleted the fix/5620 branch June 17, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trait annotations saved on the IntegrationKit resource
3 participants