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

feat: Use ModuleReleaseMeta in Kyma reconciliation loop instead of moduletemplate.channel #1947

Merged
merged 39 commits into from
Oct 16, 2024

Conversation

nesmabadr
Copy link
Contributor

Description

Changes proposed in this pull request:

  • Get the module version from the ModuleReleaseMeta instead of the ModuleTemplate spec.channel in the Kyma reconciliation loop and fetch ModuleTemplate accordingly. As a transition period, the old way of fetching all the MoudleTemplates and filtering based on the ModuleTemplate spec.channel is still supported if no ModuleReleaseMeta is found in the cluster for that module.
  • Adapt tests
  • Add documentation

Related issue(s)
Resolves #1849

@nesmabadr nesmabadr added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 10, 2024
@nesmabadr nesmabadr requested a review from a team as a code owner October 10, 2024 12:46
@kyma-bot kyma-bot added cla: yes Indicates the PR's author has signed the CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 10, 2024
@nesmabadr nesmabadr force-pushed the mrm_kyma_reconciliation branch 2 times, most recently from 49d1bdb to f88eeb3 Compare October 11, 2024 10:44
@nesmabadr nesmabadr force-pushed the mrm_kyma_reconciliation branch from f88eeb3 to 64ac0f2 Compare October 11, 2024 10:46
@nesmabadr nesmabadr force-pushed the mrm_kyma_reconciliation branch from 83771f6 to 8107508 Compare October 11, 2024 12:46
@nesmabadr nesmabadr force-pushed the mrm_kyma_reconciliation branch from 8107508 to 690cb06 Compare October 11, 2024 13:25
@kyma-bot kyma-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 11, 2024
@nesmabadr nesmabadr force-pushed the mrm_kyma_reconciliation branch from 7ad2bc1 to 90eb7a0 Compare October 11, 2024 14:02
@kyma-bot kyma-bot removed the lgtm Looks good to me! label Oct 15, 2024
@nesmabadr nesmabadr requested a review from ruanxin October 15, 2024 13:19
Copy link
Contributor

@mmitoraj mmitoraj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So what are we trying to describe? The mechanism of fetching a correct ModuleTemplate CR for a module? What does Kyma Controller require for that?

  • The module name fetched from the corresponding ModuleReleaseMeta CR
  • The channel defined in the Kyma CR
  • When Kyma Controller knows the module name and its channel it goes back to the ModuleReleaseMeta CR and takes the correct module version for the particular channel
  • ...

Here I'm lost because I don't get how the above details help to fetch the correct ModuleTemplate CR...

docs/contributor/02-controllers.md Outdated Show resolved Hide resolved
docs/contributor/02-controllers.md Outdated Show resolved Hide resolved
nesmabadr and others added 2 commits October 15, 2024 16:52
Co-authored-by: Małgorzata Świeca <malgorzata.swieca@sap.com>
@nesmabadr nesmabadr force-pushed the mrm_kyma_reconciliation branch from a6c0461 to 6187f69 Compare October 15, 2024 15:00
@nesmabadr nesmabadr requested a review from mmitoraj October 15, 2024 15:02
Co-authored-by: Małgorzata Świeca <malgorzata.swieca@sap.com>
@nesmabadr nesmabadr requested a review from mmitoraj October 16, 2024 07:30
ruanxin
ruanxin previously approved these changes Oct 16, 2024
@kyma-bot kyma-bot added the lgtm Looks good to me! label Oct 16, 2024
@nesmabadr
Copy link
Contributor Author

/cla

@kyma-bot
Copy link
Contributor

Successfully reached out to cla-assistant.io to initialize recheck of PR #1947

@kyma-bot kyma-bot removed the lgtm Looks good to me! label Oct 16, 2024
Co-authored-by: Małgorzata Świeca <malgorzata.swieca@sap.com>
@kyma-bot kyma-bot added the lgtm Looks good to me! label Oct 16, 2024
@nesmabadr nesmabadr enabled auto-merge (squash) October 16, 2024 08:17
@kyma-bot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

@kyma-bot kyma-bot removed the lgtm Looks good to me! label Oct 16, 2024
@nesmabadr nesmabadr merged commit 9491cf4 into kyma-project:main Oct 16, 2024
60 of 61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates the PR's author has signed the CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ModuleCatalog] Implement Logic for ModuleReleaseMeta CRD in Kyma Reconcile Loop
4 participants