kyma-project / lifecycle-manager

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

[ModuleCatalog] Add `.spec.manager` info to ModuleTemplate #1840

Open c-pius opened 1 month ago

c-pius commented 1 month ago

Description

In https://github.com/kyma-project/lifecycle-manager/issues/1681 it has been decided to add explicit information identifying a module's manager to the ModuleTemplate. We need to update the ModuleTemplate to include this information.

The information shall look as follows:

spec:
  manager:
    group: <group>
    version: <version>
    kind: <kind>
    namespace: <namespace>
    name: <name>

.spec.manager is OPTIONAL (for compatibility reasons), but the individual entries are REQUIRED, except Namespace which can be OPTIONAL due to CRDs not being namespaced. It should be checked whether existing K8s types and validations can be re-used.

Reasons

Enables CLI and dashboard to determine whether a module is installed or not (manual installation case)

Acceptance Criteria

Feature Testing

No response

Testing approach

No response

Attachments

No response

janmedrek commented 3 weeks ago

Let's reconsider other options such as introducing a new resource just for CLI/UI monitoring purpose.

c-pius commented 1 week ago

Discussed this quickly in the arch meeting today. PB (not present, only left a comment), is okay with the proposal that an arbitrary resource may be provided. If the resource is present, it is assumed that the module is installed in the cluster. We can make the namespace optional to support cluster scoped resources.

Still, the expected resource to be provided is the module manager (deployment). Should we nevertheless rename the field or keep manager?