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

chore: unify disk-virt task code #448

Merged
merged 1 commit into from
Jul 11, 2024
Merged

Conversation

ksimon1
Copy link
Member

@ksimon1 ksimon1 commented Jul 4, 2024

What this PR does / why we need it:
chore: unify disk-virt task code

The disk-virt tasks have almost identical code. This commit keeps only single version of disk-virt code.

Special notes for your reviewer:

Release note:

Breaking change: unify disk-virt task code and rename the tasks parameters

@kubevirt-bot kubevirt-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. size/L labels Jul 4, 2024
@openshift-ci openshift-ci bot requested review from 0xFelix and jcanocan July 4, 2024 07:14
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 4, 2024
@kubevirt-bot kubevirt-bot requested a review from opokornyy July 4, 2024 07:14
@ksimon1
Copy link
Member Author

ksimon1 commented Jul 9, 2024

/hold cancel

@ksimon1
Copy link
Member Author

ksimon1 commented Jul 9, 2024

/retest

@ksimon1 ksimon1 changed the title [WIP] chore: unify disk-virt task code chore: unify disk-virt task code Jul 9, 2024
@kubevirt-bot kubevirt-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 9, 2024
Copy link
Member

@0xFelix 0xFelix left a comment

Choose a reason for hiding this comment

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

Thanks, added a comment. Also, imports could be reorganized to separate external and local imports.

@@ -33,10 +33,10 @@ spec:
params:
- name: pvc
value: "$(tasks.modify-data-object.results.name)"
- name: sysprepCommands
Copy link
Member

Choose a reason for hiding this comment

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

Does this change user facing parameters?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes it does.

@ksimon1 ksimon1 force-pushed the unify-dks-virt-code branch from 31cd685 to e585720 Compare July 10, 2024 12:41
@ksimon1
Copy link
Member Author

ksimon1 commented Jul 10, 2024

/retest

1 similar comment
@ksimon1
Copy link
Member Author

ksimon1 commented Jul 10, 2024

/retest

The disk-virt tasks have almost identical code. This
commit keeps only single version of disk-virt code.
The params of the tasks were unified and renamed:
customizeCommands, sysprepCommands -> virtCommands
additionalOptions -> additionalVirtOptions

Signed-off-by: Karel Simon <[email protected]>
@ksimon1 ksimon1 force-pushed the unify-dks-virt-code branch from e585720 to adcddc7 Compare July 11, 2024 11:38
Copy link
Member

@0xFelix 0xFelix left a comment

Choose a reason for hiding this comment

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

I wonder if we need to document the parameter name change more visibly? Otherwise LGTM, thanks!

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 11, 2024
Copy link

openshift-ci bot commented Jul 11, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 0xFelix, ksimon1

The full list of commands accepted by this bot can be found here.

The pull request process is described 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

@ksimon1
Copy link
Member Author

ksimon1 commented Jul 11, 2024

ument the parameter name change more visibly? Otherwise LGTM, thanks!

It will be mentioned as a breaking change in release, then the new params will be part of README of each task

@ksimon1 ksimon1 merged commit f28fcca into kubevirt:main Jul 11, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants