-
Notifications
You must be signed in to change notification settings - Fork 370
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
Fix ClusterSet output when status is empty #4174
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4174 +/- ##
==========================================
+ Coverage 56.09% 60.42% +4.32%
==========================================
Files 371 383 +12
Lines 53327 54261 +934
==========================================
+ Hits 29913 32785 +2872
+ Misses 21071 19028 -2043
- Partials 2343 2448 +105
|
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.
@luolanzone : could you provide an example output (with both empty and non-empty Status)?
@jianjuns the old and new output are added in the summary. |
@luolanzone : "Empty_ClusterSet" looks strange. Could we not set it and just show "NONE"? |
Sure, let me change it to NONE. |
Do we need to set the filed to "NONE", or antctl will print "NONE" when a filed is not set? |
Antctl will print "NONE" by default when a field is not set. |
ed488eb
to
a076b8a
Compare
@jianjuns, the code is updated, the new output will be like:
|
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.
LGTM
/skip-all |
@luolanzone : this PR does not meet the 70% coverage target. Could you check any way to improve coverage? |
3403369
to
781cbe6
Compare
Hi @jianjuns after refactored a few codes, I added some unit tests for the |
@luolanzone : this PR does not reach the target coverage still. |
781cbe6
to
6ff567a
Compare
When a ClusterSet is created in the leader cluster, there might be no status yet, then `antctl mc get clustersets -A` will skip print the ClusterSet when the status is empty. Fix it by passing an empty status and condition. Signed-off-by: Lan Luo <[email protected]>
6ff567a
to
66c90f2
Compare
/skip-all |
After a ClusterSet is just created in the leader cluster, it might have no status yet, then `antctl mc get clustersets -A` will skip print the ClusterSet when its status is empty. Fix it by passing an empty status and condition. Signed-off-by: Lan Luo <[email protected]>
When a ClusterSet is created in the leader cluster, there might be
no status yet, then
antctl mc get clustersets -A
will skip print theClusterSet when the status is empty.
Fix it by passing an empty status and condition.
The old output:
The new output:
Signed-off-by: Lan Luo [email protected]