Skip to content
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: implement topolvm controller mutate function #36

Merged
merged 1 commit into from
Dec 21, 2021
Merged

fix: implement topolvm controller mutate function #36

merged 1 commit into from
Dec 21, 2021

Conversation

leelavg
Copy link
Contributor

@leelavg leelavg commented Dec 21, 2021

Signed-off-by: Leela Venkaiah G lgangava@redhat.com

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 21, 2021
@leelavg leelavg marked this pull request as ready for review December 21, 2021 05:00
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 21, 2021
@leelavg leelavg requested review from nbalacha and sp98 December 21, 2021 06:06
@sp98
Copy link
Contributor

sp98 commented Dec 21, 2021

Please add description to the PR and/or commit message. Won't be very clear to others what the mutate function means.

- controller-util's `CreateOrUpdate` accepts a mutate function
- when topolvm controller deployment is being created, mutate the
existing (~new) deployment to have desired deployment state
- when reconciled for update, mutate function will only set/change
spec of concerned fields to have desired deployment.

Signed-off-by: Leela Venkaiah G <lgangava@redhat.com>
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 21, 2021
@nbalacha
Copy link
Contributor

/lgtm

@nbalacha nbalacha merged commit 848792e into openshift:main Dec 21, 2021
Copy link
Contributor

@sp98 sp98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 21, 2021

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@leelavg leelavg deleted the fix-mutate branch December 29, 2021 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants