-
Notifications
You must be signed in to change notification settings - Fork 119
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
add HEALTHY column to modules list #2272
base: main
Are you sure you want to change the base?
Conversation
@@ -87,7 +100,114 @@ func List(ctx context.Context, client kyma.Interface) (ModulesList, error) { | |||
return modulesList, nil | |||
} | |||
|
|||
func getInstallDetails(kyma *kyma.Kyma, releaseMetas kyma.ModuleReleaseMetaList, moduleName string) ModuleInstallDetails { | |||
func getModuleDeploymentHealth(ctx context.Context, client kube.Client, moduleTemplate kyma.ModuleTemplate, kymaCR *kyma.Kyma) (Healthy, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you think about refactoring this method? It is now very complex (15 if
s inside) and hard to understand.
return HealthyUnknown, nil | ||
} | ||
|
||
func getResourceState(ctx context.Context, client kube.Client, apiVersion, kind, namespace, name string) (string, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same as before. IMO this method is too complex and is hard to read.
Description
Changes proposed in this pull request:
Related issue(s)
kyma alpha module list
command with headerstate
#2264