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

Extend the kyma alpha module list command with header state #2264

Open
1 of 2 tasks
kwiatekus opened this issue Nov 28, 2024 · 2 comments
Open
1 of 2 tasks

Extend the kyma alpha module list command with header state #2264

kwiatekus opened this issue Nov 28, 2024 · 2 comments
Assignees

Comments

@kwiatekus
Copy link
Contributor

kwiatekus commented Nov 28, 2024

Description

Calculate module status and display as an additional (Healthy - boolean) column when listing installed modules

AC

  • for managed modules we could use the information about module status from Kyma CR (and avoid doing evaluation in kyma cli logic)
  • for modules for which management was disabled kyma cli would need to calculate the status based on module CR (status.state) or, if module doesnt come with module CR, based on manager's status ( find it first in the cluster based on module template.spec.manager).
@kwiatekus kwiatekus transferred this issue from kyma-project/docker-registry Nov 28, 2024
@halamix2
Copy link
Member

halamix2 commented Nov 29, 2024

.spec.manager is not a mandatory field in the module template (also .spec.manager.namespace is not mandatory, but no default value has been documented in CRD)

@kwiatekus
Copy link
Contributor Author

This command returns error in case no compatible module is installed: i.e:

 kyma@v3 alpha module list                                                               
Error:
  failed to list available modules from the cluster

Error Details:
  failed to discover API resource using discovery client: resource 'Sample' in group 'operator.kyma-project.io', and version 'v1alpha1' not registered on cluster

☝ the error is confusing. where does it come from?

Then if I installed template-operator with kyma@v3 alpha module add template-operator
I can see the list:

kyma@v3 alpha module list                                                                
NAME             	AVAILABLE VERSIONS            	INSTALLED               	MANAGED	STATUS
template-operator	0.0.1-catalog-meta(regular),  	0.0.2-catalog-meta(fast)	true   	Ready
                 	0.0.2-catalog-meta(fast)

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

No branches or pull requests

3 participants