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

Add detailed status msgs for installed carvel pkgs #4059

Merged
merged 4 commits into from
Jan 12, 2022

Conversation

antgamdia
Copy link
Contributor

Description of the change

Due to the wide variety of reasons why a carvel package can fail we initially opted for summarizing the this reason "deployed/ reconcilling/...". However this info is not enough when viewing a given installed package, where we would expect to see more details about the failure.

  • Also squeezing a change to print the context in the console messages as in the rest of the plugins.

Benefits

More detailed info in the installed carvel pkg view

Possible drawbacks

N/A

Applicable issues

Additional information

image

Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
installedPackageDetail.Status = &corev1.InstalledPackageStatus{
Ready: pkgInstall.Status.Conditions[0].Type == kappctrlv1alpha1.ReconcileSucceeded,
Reason: statusReasonForKappStatus(pkgInstall.Status.Conditions[0].Type),
UserReason: userReasonForKappStatus(pkgInstall.Status.Conditions[0].Type),
UserReason: pkgInstall.Status.UsefulErrorMessage, // long message, instead of the simpleUserReasonForKappStatus
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice to have an explicit useful error message :P

@antgamdia antgamdia changed the base branch from master to 3680-repos-read-role-aggregation January 12, 2022 08:59
@antgamdia antgamdia changed the base branch from 3680-repos-read-role-aggregation to master January 12, 2022 08:59
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
@antgamdia antgamdia merged commit 6b30d5d into vmware-tanzu:master Jan 12, 2022
@antgamdia antgamdia deleted the detailedStatusMgs branch January 12, 2022 10:46
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

Successfully merging this pull request may close these issues.

None yet

2 participants