kyma-project / lifecycle-manager

Controller that manages the lifecycle of Kyma Modules in your cluster.
http://kyma-project.io
Apache License 2.0
9 stars 30 forks source link

[Module catalogue improvements ] Extend Kyma CR module list with an explicit version #1589

Open Tomasz-Smelcerz-SAP opened 1 month ago

Tomasz-Smelcerz-SAP commented 1 month ago

Description

Note: This issue is just about API change, the change in the controller logic is expected to be implemented here

In order to support explicit module version, we need to add an optional version attribute to the Kyma CR module list.

An example:

Use case 1 / existing: User wants to enable a specific channel of a module in their cluster.
[...]
- modules:
  - name: my-module
    channel: fast
[...]
Use case 2 / new: User wants to enable a specific version of a module in their cluster.
[...]
- modules:
  - name: my-module
    version: 1.0.0
[...]

Reasons

We need this because users must be given an option to install a specific version of the module. If the user wants to enable a specific module version, a ModuleTemplate CR corresponding to that version must exist in the control-plane.

Acceptance Criteria

Feature Testing

e2e test for the validation. Can be done with local EnvTest.

Testing approach

No response

Attachments

No response

Related issue(s)

https://github.com/kyma-project/lifecycle-manager/issues/1590

c-pius commented 3 weeks ago

@Tomasz-Smelcerz-SAP FYI: changed the following AC

Add new optional version attribute is to the module list in Kyma CR. Must be a semantic version or a defined identifier like regular or fast (see Introduce New ModuleTemplate API version to support the new Module Catalog #1590).