-
Notifications
You must be signed in to change notification settings - Fork 40
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
feat: more changes to the CRD status #79
Conversation
The LVMCluster.Status has been modified to include the list of devices used by each volumegroup. Signed-off-by: N Balachandran <nibalach@redhat.com>
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
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.
Maybe we may need a device status in the future
@@ -158,6 +158,12 @@ func (r *VGReconciler) reconcile(ctx context.Context, req ctrl.Request) (ctrl.Re | |||
} | |||
|
|||
_, found := deviceClassMap[volumeGroup.Name] | |||
if found { | |||
volGrpHostInfo, err := GetVolumeGroup(r.executor, volumeGroup.Name) | |||
if err == nil { |
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.
why not handle errors?
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.
done
@@ -217,6 +223,11 @@ func (r *VGReconciler) reconcile(ctx context.Context, req ctrl.Request) (ctrl.Re | |||
} | |||
} | |||
|
|||
volGrpHostInfo, err := GetVolumeGroup(r.executor, volumeGroup.Name) | |||
if err == nil { |
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.
why not handle errors?
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.
done
The LVMVolumeGroupNodeStatus and LVMCluster status will now include information about the devices being used by the volumegroups. Signed-off-by: N Balachandran <nibalach@redhat.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jmolmo, leelavg, nbalacha, sp98 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The LVMCluster and LVMVoluemGroupNodeStatus will now include information about the devices being used by the configured volumegroups.