-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 status column to get BSL output #2493
Add status column to get BSL output #2493
Conversation
Signed-off-by: Carlisia <[email protected]>
Or maybe This is because when the BSL gets created on the client side it isn't validated then, that only happens when the BSL controller runs (see: #2490). |
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.
commented on the empty phase question, other than that it LGTM!
|
||
status := location.Status.Phase | ||
if status == "" { | ||
status = velerov1api.BackupStorageLocationPhaseAvailable |
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.
I'd display this as <Unknown>
or something along those lines, since we don't yet know if it's available.
Even if we define a third phase of Unknown
, new CRs could still have an empty phase (until we add defaulting to our CRD specs), so I do think it makes sense to check for and handle an empty status.phase field here.
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.
Signed-off-by: Carlisia <[email protected]>
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!
This closes #2489.
Question
It seems to me as arbitrary to specify an empty status with
Available
as it would be withUnavailable
- here: https://github.com/vmware-tanzu/velero/compare/master...carlisia:c-2489-bsl-column?expand=1#diff-c73073c993c3249edf0a5d8b6d30fa87R64Should there be a third phase, maybe status
Unknown
? I'm not super set on this, we could make it available/unavailable.Signed-off-by: Carlisia [email protected]