Closed StarpTech closed 2 years ago
@StarpTech yeah, conditions coloring is a bit misleading. i wonder if we should remove coloring or may be even remove entire column -- ive not found myself using it at all. wdyt? (since conditions are very much resource specific there isnt a good pattern to follow here).
I mean if we can't determine if a condition is successful we should remove it. Otherwise, fix it. I think the information that all conditions are meet useful.
I mean if we can't determine if a condition is successful we should remove it.
unfortunately kubernetes doesnt provide any foundation for describing something being "successful" or not. conditions are more like facts. they are either True or False but that does not indicate whether something is succesful or not. so ultimately today in kubernetes, only human can decide whether something is "succesful".
ive added conds. column long time as more of an experiment in determining if it's going to be useful, but so far didnt have strong reaction from folks about it being actually useful.
Remove conditions column from kapp inspect
and during diff stage
since it's misleadingly coloured for some of the resources like HPA which always have a false condition.
Currently this condition comes in the GUI output as mentioned in the description of the issue. So we need to remove it.
ui table
in the print
method. This is happening at 3 places.
- https://github.com/vmware-tanzu/carvel-kapp/blob/6b191d2550397dc1007f5bcb2ef536d0358fdd3f/pkg/kapp/cmd/tools/inspect_tree_view.go#L25
- https://github.com/vmware-tanzu/carvel-kapp/blob/6b191d2550397dc1007f5bcb2ef536d0358fdd3f/pkg/kapp/cmd/tools/inspect_view.go#L22
- https://github.com/vmware-tanzu/carvel-kapp/blob/6b191d2550397dc1007f5bcb2ef536d0358fdd3f/pkg/kapp/clusterapply/changes_view.go#L35
Remove the Conds.
header column and part of the row which populates this column.
After that, we have to fix the test cases to remove this column from the output. e.g. https://github.com/vmware-tanzu/carvel-kapp/blob/6b191d2550397dc1007f5bcb2ef536d0358fdd3f/test/e2e/exists_ann_test.go#L58
Like this, it has been mentioned in various test cases across multiple files. We have to remove this column from all of them.
Available as part of kapp v0.47.0
What steps did you take:
What happened:
ScalingLimited: false
is interpreted as an error.What did you expect: ScalingLimited indicates that autoscaling is not allowed because a maximum or minimum replica count was reached.
A True condition indicates that you need to raise or lower the minimum or maximum replica count in order to scale.
A False condition indicates that the requested scaling is allowed.
Source: https://docs.openshift.com/container-platform/3.9/dev_guide/pod_autoscaling.html
Environment:
kapp --version
): 0.37.0/etc/os-release
): Ubuntukubectl version
): 1.19.4Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible" 👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.