chore(greenhouse): add ready message to printcolumns#1682
Open
chore(greenhouse): add ready message to printcolumns#1682
Conversation
Contributor
|
Had a quick look how this would look like in our environments. In most cases the message is pointing to the failing condition or replicates other status fields. In the case of the majority where the resource is ready, the Ready and Message printer columns are redundant. ( Ready=true, Message=ready ) I believe we should tackle this resource by resource. Update the Status reconciliation to bring better messages about the error condition and then add the new PrinterColumn. Production for p in "plugin" "pluginpreset" "catalog" "clusterplugindefinition" "plugindefinition" "teamrole" "teamrolebinding" "organization" "team"; do echo "==> $p"; kg $p -oyaml | yq '.items[] | .status.statusConditions.conditions[] | select(.type == "Ready" and .status != "True") | .message'; done
==> plugin
Helm reconcile failed
Helm reconcile failed
Helm reconcile failed
Helm reconcile failed
Helm reconcile failed
Helm reconcile failed
Helm reconcile failed
Helm reconcile failed
Helm reconcile failed
Helm reconcile failed
Helm reconcile failed
Helm reconcile failed
Helm reconcile failed
==> pluginpreset
0 of 10 plugins are ready
0 of 1 plugins are ready
No cluster matches ClusterSelector
==> catalog
==> clusterplugindefinition
==> plugindefinition
==> teamrole
==> teamrolebinding
Team RBAC reconciliation failed
==> organization
==> teamPlayground for p in "plugin" "pluginpreset" "catalog" "clusterplugindefinition" "plugindefinition" "teamrole" "teamrolebinding" "organization" "team"; do echo "==> $p"; kg $p -oyaml | yq '.items[] | .status.statusConditions.conditions[] | select(.type == "Ready" and .status != "True") | .message'; done
==> plugin
cluster access not ready
cluster access not ready
cluster access not ready
cluster access not ready
cluster access not ready
Helm reconcile failed
cluster access not ready
Helm reconcile failed
Helm reconcile failed
Helm reconcile failed
Helm reconcile failed
Helm reconcile failed
Helm reconcile failed
==> pluginpreset
0 of 1 plugins are ready
No cluster matches ClusterSelector
0 of 1 plugins are ready
0 of 1 plugins are ready
0 of 1 plugins are ready
0 of 1 plugins are ready
0 of 1 plugins are ready
0 of 1 plugins are ready
0 of 1 plugins are ready
Plugin reconciliation failed
0 of 1 plugins are ready
0 of 1 plugins are ready
0 of 1 plugins are ready
0 of 1 plugins are ready
==> catalog
not all catalog objects are ready
==> clusterplugindefinition
==> plugindefinition
==> teamrole
==> teamrolebinding
==> organization
null
null
==> team |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This changes printed columns in
kubectl getcommands of Greenhouse resources to include themessageof the ReadyCondition. Intention is to get a quick understanding of why resources are failing in the list commands.What type of PR is this? (check all applicable)